-
Notifications
You must be signed in to change notification settings - Fork 539
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
Update runfiles lib #982
Update runfiles lib #982
Conversation
@alexeagle This is the first commit with changes backported (?) from Bazel. I will start adding the Bzlmod changes as follow-ups. |
Is there a canonical way to format Python files? The runfiles library differs from the Bazel Core one in this regard and I would like to stay consistent with the formatting style used in this repo. |
You can install pre-commit.com and run 'pre-commit install' for our typical flow. It just uses black and there's no CI enforcement IIRC |
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! I assume this was already reviewed when it was changed upstream so we are just updating our vendored copy
Cherry-picks a fix added to the Bazel version of the runfiles library in bazelbuild/bazel@486d153
18dc177
to
b220689
Compare
I ran the formatters. |
Thanks! |
* runfiles: Find runfiles in directories that are themselves runfiles Cherry-picks a fix added to the Bazel version of the runfiles library in bazelbuild/bazel@486d153 * runfiles: Add tests from Bazel
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
rules_python's runfiles library is affected by bazelbuild/bazel#14336, which has been fixed upstream.
What is the new behavior?
rules_python's version of the runfiles library contains bazelbuild/bazel@486d153
Does this PR introduce a breaking change?
Other information
Also adds the tests contained in the Bazel repo.