-
Notifications
You must be signed in to change notification settings - Fork 536
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(toolchain): symlink all toolchain files for the host toolchain #1745
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Use the same binary path that the regular toolchain is using in an attempt to see if the behaviour is any different. Attempt to fix #1723
f0rmiga
approved these changes
Feb 6, 2024
This requires admin privileges and it seems `bazel` and a few other project may have relied on us just working without symlink support. This may break more things, so let's see what the CI says.
I don't think this is fixing anything yet, so I have removed it from the queue for now, I am working on an alternative fix. Will mark as a draft. |
aignas
changed the title
fix(toolchain): attempt to fix the host toolchain on windows
fix(toolchain): symlink all toolchain files for the host toolchain
Feb 6, 2024
meteorcloudy
reviewed
Feb 6, 2024
meteorcloudy
reviewed
Feb 6, 2024
meteorcloudy
approved these changes
Feb 7, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Previously we would only symlink the interpreter binary itself
when creating the hermetic host toolchain used in setting up the
whl_library
repositories. This works on UNIX platforms and Windowsif they have the following in their
.bazelrc
:In our CI we had the same lines but the users did not need to add them
until the
0.29.0
forced them to have them because we actually startedusing symlinks on Windows. If the symlinks are not enabled on the host
platform
bazel
tries to be helpful and copies the files over insteadof making the links. We are leveraging this to just symlink all of the
contents of the python interpreter repository for the host platform to
the
_host
toolchain repository.Fixes #1723