Skip to content

Commit

Permalink
Update atmos vendor pull (#188)
Browse files Browse the repository at this point in the history
  • Loading branch information
aknysh committed Aug 30, 2022
1 parent 337c965 commit 9940032
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion examples/complete/Dockerfile
Expand Up @@ -2,7 +2,7 @@
ARG GEODESIC_VERSION=1.2.3
ARG GEODESIC_OS=debian
# atmos: https://github.com/cloudposse/atmos
ARG ATMOS_VERSION=1.4.27
ARG ATMOS_VERSION=1.4.28
# Terraform: https://github.com/hashicorp/terraform/releases
ARG TF_VERSION=1.2.8

Expand Down
8 changes: 8 additions & 0 deletions internal/exec/vendor_utils.go
Expand Up @@ -352,6 +352,14 @@ func ExecuteComponentVendorCommandInternal(

// Preserve the uid and the gid of all entries
PreserveOwner: false,

// OnSymlink specifies what to do on symlink
// Override the destination file if it already exists
// Prevent the error:
// symlink components/terraform/mixins/context.tf components/terraform/infra/vpc-flow-logs-bucket/context.tf: file exists
OnSymlink: func(src string) cp.SymlinkAction {
return cp.Deep
},
}

if err = cp.Copy(tempDir, componentPath, copyOptions); err != nil {
Expand Down

0 comments on commit 9940032

Please sign in to comment.