fix: Failing sandbox test on macOS#2991
Open
NZTimKeegan wants to merge 1 commit into
Open
Conversation
Author
|
I will execute the commands manually on macOS before moving out of draft |
Author
Author
|
I'm unsure which |
Author
|
Edited description to add reproduction command and observed output |
On macOS, python-build-standalone (used by hatch/uv) embeds @executable_path/../lib/libpythonX.Y.dylib. When EnvBuilder copies the binary into a new venv, @executable_path resolves to the venv's bin/ directory where the dylib is absent, causing dyld to abort. Using symlinks instead lets macOS resolve the reference back to the original installation.
67314a1 to
16479e8
Compare
Author
|
Rebased & pushed to resolve conflicts ( |
This file contains hidden or 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
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.

Pre-review checklist
Changes description
On macOS, python-build-standalone (used by hatch/uv) embeds @executable_path/../lib/libpythonX.Y.dylib. When EnvBuilder copies the binary into a new venv, @executable_path resolves to the venv's bin/ directory where the dylib is absent, causing dyld to abort. Using symlinks instead lets macOS resolve the reference back to the original installation.
Failing Test
The failing test is test_sandbox_env_builder.
Below is the output when run on the
mainbranch on macOS.Command:
Result: