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

[6.0🍒] Resolve main executable symlink when looking up driver-adjacent subcommand binaries #1606

Open
wants to merge 1 commit into
base: release/6.0
Choose a base branch
from

Conversation

artemcm
Copy link
Contributor

@artemcm artemcm commented May 13, 2024

Cherry-pick of #1583

Explanation: As per apple/swift#70932, when swift-driver is installed via a symlink, it is not able to correctly resolve adjacent tool binaries by following their corresponding symlinks. This is a regression from the old, legacy C++ driver. This change fixes this behavior by having the driver resolve its own path if it is a symlink, first.

Risk: Low. Cases where the added code takes effect were previously not working.

Testing: Expected behavior validated manually by implementor and issue originator (on main)

Resolves apple/swift#70932

@artemcm artemcm requested a review from nkcsgexi May 13, 2024 17:56
@artemcm
Copy link
Contributor Author

artemcm commented May 13, 2024

@swift-ci test

@artemcm
Copy link
Contributor Author

artemcm commented May 15, 2024

@swift-ci test Windows platform

@artemcm
Copy link
Contributor Author

artemcm commented May 15, 2024

@swift-ci test macOS platform

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.

None yet

2 participants