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

fix(linux): detect swift symlinked to bin dir #802

Merged
merged 1 commit into from
Feb 4, 2024

Conversation

judemille
Copy link
Contributor

Currently, if Swift is installed in, say /usr/lib/swift, but /usr/bin/swift
has been symlinked to /usr/lib/swift/bin/swift, then SourceKitten will fail
to detect Swift's install directory. This PR fixes that, by reading symlinks
on the detected Swift executable.

@judemille judemille changed the title fix(linux): detect swift symlinked to bin dir. fix(linux): detect swift symlinked to bin dir Feb 3, 2024
Copy link
Owner

@jpsim jpsim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you so much for the fix!

@judemille
Copy link
Contributor Author

No idea what Bazel's problem is, I didn't touch it.

@jpsim
Copy link
Owner

jpsim commented Feb 4, 2024

The Bazel CI failures are unrelated to your changes, something surely changed upstream (probably bazel 7.0) and I’ll need to make changes in this repo to adjust for it.

@jpsim jpsim merged commit 93d94e5 into jpsim:main Feb 4, 2024
9 of 13 checks passed
@judemille judemille deleted the detect-symlinked-swift branch February 4, 2024 18:36
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.

2 participants