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

Add option for preserving symlinks for aws deploy push command #8908

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

jhaydter
Copy link

@jhaydter jhaydter commented Sep 9, 2024

Issue #:
#6989
Previously Closed PR - credit to @iansltx:
#3071

Reviving past PR for approval.

By default, symlinks are materialized into their targets when they are zipped for deploy. Some applications, e.g. PHP's Doctrine ORM vendor/bin scripts, rely on symlinks to be preserved to work, and are thus broken by the default deploy behavior if your PHP project's deployment archive includes its vendor directory (which it should).

This commit adds an option (default off for BC reasons) to preserve symlinks when creating the deployment archive. Used --ignore-hidden-files as a template for parameter implementation.

Tests have been updated with the extra argument, including asserting that you can't specify to both preserve and not preserve symlinks simultaneously. However, while I've confirmed that behavior works as expected in the scenario for which I needed this functionality, there isn't an automated test to that effect, partially because I'm not sure how that test would fare across all environments.

References:
https://gist.github.com/kgn/610907
http://www.mail-archive.com/[email protected]/msg34223.html

@jhaydter jhaydter marked this pull request as draft September 9, 2024 22:48
@jhaydter jhaydter force-pushed the add-deploy-push-preserve-symlinks branch from fdaffc9 to 029819c Compare September 9, 2024 22:55
@jhaydter jhaydter marked this pull request as ready for review September 9, 2024 23:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant