-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Make repo marker file parsing robust to version changes #23642
Make repo marker file parsing robust to version changes #23642
Conversation
Bazel 7.1.0 and 7.2.0 contains a bug where + characters in labels in the repository marker files cannot be parsed. This was fixed in commit d62e0a0. To reduce the rusk of future bugs in the same area, this change skips parsing the file if the first line shows that the content will not be used anyway, which should be reasonably safe if introducing new formats. Improves bazelbuild#23336 that fixed bazelbuild#23322.
@Wyverald Feel free to abandon this PR if you think the current marker file parser is robust enough. I can't find any loop hole in the current parser, so I can't create any additional tests for this change. |
src/main/java/com/google/devtools/build/lib/rules/repository/RepositoryDelegatorFunction.java
Outdated
Show resolved
Hide resolved
src/main/java/com/google/devtools/build/lib/rules/repository/RepositoryDelegatorFunction.java
Outdated
Show resolved
Hide resolved
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!
@bazel-io fork 7.4.0 |
Bazel 7.1.0 and 7.2.0 contains a bug where + characters in labels in the repository marker files cannot be parsed. This was fixed in commit d62e0a0. To reduce the rusk of future bugs in the same area, this change skips parsing the file if the first line shows that the content will not be used anyway, which should be reasonably safe if introducing new formats. Improves #23336 that fixed #23322. Closes #23642. PiperOrigin-RevId: 679330823 Change-Id: I8123bdde047735ced3eabed3df68112d44318b08
The changes in this PR have been included in Bazel 7.4.0 RC1. Please test out the release candidate and report any issues as soon as possible. |
Bazel 7.1.0 and 7.2.0 contains a bug where + characters in labels in the repository marker files cannot be parsed. This was fixed in commit d62e0a0. To reduce the rusk of future bugs in the same area, this change skips parsing the file if the first line shows that the content will not be used anyway, which should be reasonably safe if introducing new formats.
Improves #23336 that fixed #23322.