-
-
Notifications
You must be signed in to change notification settings - Fork 111
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
atmos vendor pull fails when source repository contains symlinks #698
Comments
Thanks for reporting! We'll take a look. |
I've found a workaround by setting |
Symlinks are tricky across platforms. If we detect WSL or Windows, we should probably force |
@VentByte we plan to ignore all symlinks in vendoring with go-getter due the security issues associated with it. Do you have concerns with this approach? |
@osterman thanks for the Update. While ignoring all symlinks might not be ideal for some use cases, I agree that it's likely the best approach from a security standpoint. That said, it would be great if there were an option to explicitly allow symlinks for trusted sources. This could provide flexibility for cases where symlinks are necessary while still maintaining security for the default behavior. |
Describe the Bug
When using the atmos vendor pull command, the process fails if the vendor repository contains a symlink. Specifically, if there is a symlink in the repository structure, atmos does not handle it correctly and triggers an error during the pull operation. This issue occurs consistently when the defined source repository contains a symlink.
Expected Behavior
atmos vendor pull
should correctly handle symlinks in vendor repositories, ensuring that the linked paths are included without causing errors.Steps to Reproduce
atmos vendor pull
Screenshots
Environment
Additional Context
Content of vendor.yaml:
Content of vendor repository:
Working directory before running
atmos vendor pull
:Working directory before after
atmos vendor pull
:The text was updated successfully, but these errors were encountered: