-
-
Notifications
You must be signed in to change notification settings - Fork 606
fix: delete BUILD et al files from pypi sourced dependencies #3029
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: delete BUILD et al files from pypi sourced dependencies #3029
Conversation
fce691e
to
23cb11d
Compare
Ideas for testing this? Aside from checking in a pre-built whl (I'm very much against any checked in artifacts after what happened to xz) Ah -- a repository rule to transform a file structure into a zip, to then pass onto whl_library? We can then define an entirely arbitrary layout of files verbatim and have it automatically turned into a wheel for testing. |
3edab06
to
34a3090
Compare
I added a helper to create a whl from a directory tree. This is really nice for testing whl_library! We can now integration test arbitrary wheel file structures and contents without having to download anything. |
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.
Nice!
Please remember to add a line in the CHANGELOG.
…into fix.pypi.rm.build.files
Changelog updated. Merging. |
Sometimes wheels mistakenly contain BUILD files (or other special Bazel files).
When extracted, these interfere with how we expected the repo to look. In particular,
globs no longer match correctly because BUILD files create a Bazel package boundary.
To fix, delete these files. They aren't generally usable, since they can't know what
version of Bazel, rule_python, or similar, is consuming them.
Fixes #2782