-
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
Consider invalid entries in the marker file reason for refetch #23336
Conversation
Note that arguably the correct thing to do here is to always refetch instead of ignoring invalid entries -- although I'm not sure how much trouble we should go through for this corner case. |
3bab496
to
0a6880d
Compare
I would prefer that. If it saves us from debugging just one future incrementality issue with repo rules, it will have been worth it. |
Fair point! Updated. |
I ran some tests before I did see this fix, appending
I've also observed
Because the |
@bazel-io fork 7.4.0 |
Especially due to bazelbuild#23127, older marker files may contain entries that don't even parse correctly. Instead of crashing Bazel, we should signal a refetch. Fixes bazelbuild#23322. Closes bazelbuild#23336. PiperOrigin-RevId: 666416942 Change-Id: Ie5507654f69825d93f9523d9c209d417fb3cdaf6
Yeah this seems fine. If we pass in
I don't understand why this is necessary. We don't expect people to manually mess with their marker files. |
The reason for cherry-picking is when switching branches. Switching from new branch using a new Bazel version to a branch using 7.1.x and 7.2.x will make Bazel crash if |
I see, that's a valid enough reason. |
Especially due to bazelbuild#23127, older marker files may contain entries that don't even parse correctly. Instead of crashing Bazel, we should signal a refetch. Fixes bazelbuild#23322. Closes bazelbuild#23336. PiperOrigin-RevId: 666416942 Change-Id: Ie5507654f69825d93f9523d9c209d417fb3cdaf6
Bazel 7.1.0 and 7.2.0 contains a bug where + characters in labels in the repository marker files cannot be parsed. Improves bazelbuild#23336 that fixed bazelbuild#23322.
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.
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
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
Especially due to #23127, older marker files may contain entries that don't even parse correctly. Instead of crashing Bazel, we should signal a refetch.
Fixes #23322.