-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Do not store the repository name in RepoSpec
#21026
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
Conversation
69b1892 to
537e9b1
Compare
c4f9da7 to
a4f103a
Compare
7fff96f to
a4f103a
Compare
Wyverald
left a comment
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.
looks good to me -- will let @meteorcloudy answer the outstanding questions
src/main/java/com/google/devtools/build/lib/bazel/bzlmod/Registry.java
Outdated
Show resolved
Hide resolved
a4f103a to
03d663c
Compare
bd76f92 to
625ecee
Compare
a1f06f4 to
1b3f7db
Compare
|
Hi @fmeum, The above PR is awaiting to merge, Can you please take a look and also resolve the conflicts. Thanks! |
6f43e8d to
83ec486
Compare
The name can instead be set centrally in `BzlmodRepoRuleFunction`. This removes some glue code and paves the way for rewriting canonical repo names based on knowledge of the full dep graph.
ca59bac to
cb833cd
Compare
|
The r_j_e update introduced more special cases for the lockfile update hack that I could't figure out how to handle, so I just built backwards compatibility into Bazel instead. Do you think that's reasonable? |
meteorcloudy
left a comment
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.
I think this is even better! Thanks!
|
@bazel-io fork 7.1.0 |
The name can instead be set centrally in `BzlmodRepoRuleFunction`. This removes some unnecessary glue code and paves the way for rewriting canonical repo names based on knowledge of the full dep graph. Work towards bazelbuild#20997 Closes bazelbuild#21026. PiperOrigin-RevId: 604256186 Change-Id: Ia49123f016d1512074b04ec458f017f4bbb88233
The name can instead be set centrally in `BzlmodRepoRuleFunction`. This removes some unnecessary glue code and paves the way for rewriting canonical repo names based on knowledge of the full dep graph. Work towards bazelbuild#20997 Closes bazelbuild#21026. PiperOrigin-RevId: 604256186 Change-Id: Ia49123f016d1512074b04ec458f017f4bbb88233
The name can instead be set centrally in `BzlmodRepoRuleFunction`. This removes some unnecessary glue code and paves the way for rewriting canonical repo names based on knowledge of the full dep graph. Work towards #20997 Closes #21026. PiperOrigin-RevId: 604256186 Change-Id: Ia49123f016d1512074b04ec458f017f4bbb88233
The name can instead be set centrally in `BzlmodRepoRuleFunction`. This removes some unnecessary glue code and paves the way for rewriting canonical repo names based on knowledge of the full dep graph. Work towards #20997 Closes #21026. PiperOrigin-RevId: 604256186 Change-Id: Ia49123f016d1512074b04ec458f017f4bbb88233 Co-authored-by: Fabian Meumertzheim <[email protected]>
|
We should have updated the lockfile version in this change. Otherwise people getting the following error after switching from Bazel@HEAD and Bazel 7.x with lockfile enabled |
|
@SalmaSamy is sending a change to bump the lock file version. |
|
Thanks for catching this, I only thought about forward compatibility but never considered the other direction. @SalmaSamy #21035 will bump the lock file version anyway. I will try to fix the remaining test today. |
|
The changes in this PR have been included in Bazel 7.1.0 RC1. Please test out the release candidate and report any issues as soon as possible. If you're using Bazelisk, you can point to the latest RC by setting USE_BAZEL_VERSION=last_rc. |
The new lockfile format 6 drops the "name" attribute of each repoSpec. See also: bazelbuild/bazel#21026 This prevents the builder from effectively the deps using requiredDepNamePredicate. Instead, we now generate names from other metadata.
The new lockfile format 6 drops the "name" attribute of each repoSpec. See also: bazelbuild/bazel#21026 This prevents the builder from effectively the deps using requiredDepNamePredicate. Instead, we now generate names from other metadata.
* bazel_7: 7.1.0 -> 7.1.2 * bazel_7: update lockfiles * bazel_7: upgrade lockfile format for versions > 3 The new lockfile format 6 drops the "name" attribute of each repoSpec. See also: bazelbuild/bazel#21026 This prevents the builder from effectively the deps using requiredDepNamePredicate. Instead, we now generate names from other metadata.
The name can instead be set centrally in
BzlmodRepoRuleFunction. This removes some unnecessary glue code and paves the way for rewriting canonical repo names based on knowledge of the full dep graph.Work towards #20997