Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update atmos vendor pull #188

Merged
merged 1 commit into from Aug 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/complete/Dockerfile
Expand Up @@ -2,7 +2,7 @@
ARG GEODESIC_VERSION=1.2.3
aknysh marked this conversation as resolved.
Show resolved Hide resolved
aknysh marked this conversation as resolved.
Show resolved Hide resolved
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