Skip to content

Commit

Permalink
Do not re-link or re-copy a deployed file if it still exists.
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchell-as committed Sep 4, 2024
1 parent ad73915 commit 8b53eb9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/runtime/depot.go
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,9 @@ func (d *depot) getSharedFilesToRedeploy(id strfmt.UUID, deploy deployment, path
// For each file deployed by this artifact, find another artifact (if any) that deploys its own copy.
for _, relativeDeployedFile := range deploy.Files {
deployedFile := filepath.Join(path, relativeDeployedFile)
if fileutils.TargetExists(deployedFile) {
continue // file still exists; no need to re-link or re-copy
}
for artifactId, artifactDeployments := range d.config.Deployments {
if artifactId == id {
continue
Expand Down

0 comments on commit 8b53eb9

Please sign in to comment.