Skip to content

fix: make plain zipapp work with bootstrap=script #2598

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

Merged

Conversation

rickeylev
Copy link
Collaborator

The __main__.py template (zip_main_template.py) was using the wrong path when creating
the interpreter symlinks. It as computing it correctly, just the wrong variable was used
in the symlink() call.

To fix, pass the correct variable.

Also adds a test to check that it's runnable.

Fixes #2596

@rickeylev rickeylev requested a review from aignas as a code owner February 1, 2025 04:20

Verified

This commit was signed with the committer’s verified signature.
ljharb Jordan Harband
@rickeylev rickeylev force-pushed the fix.bootstrap.script.zip.filegroup branch from 182ebbe to 9629d7a Compare February 1, 2025 04:21
Copy link
Collaborator

@aignas aignas left a comment

Choose a reason for hiding this comment

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

Thanks for the test.

The only thing left is a Changelog note about the fixed issue.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
@rickeylev
Copy link
Collaborator Author

Changelog updated

@rickeylev rickeylev enabled auto-merge February 2, 2025 01:42
@rickeylev rickeylev added this pull request to the merge queue Feb 2, 2025
Merged via the queue into bazel-contrib:main with commit 33cb431 Feb 2, 2025
4 checks passed
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.

--bootstrap_impl=script breaks python_zip_file files
2 participants