-
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
bazel mod show_repo <canonical repo name>
doesn't work for module extension generated repos.
#21621
Comments
ah, I think this is as simple as removing that |
@Wyverald I don't quite understand, I didn't see anywhere in the code that is checking the canonical repo name generated by module extension? ( |
I meant removing the check at https://cs.opensource.google/bazel/bazel/+/master:src/main/java/com/google/devtools/build/lib/bazel/bzlmod/modcommand/ModuleArg.java;drc=a54a393d209ab9c8cf5e80b2a0ef092196c17df3;l=339, so we don't check that the canonical repo name is from a module. We can simply not check anything at all and let it fail later if the repo doesn't actually exist. |
@bazel-io fork 7.1.1 |
Previously we enforced that the canonical repo name had to correspond to a module (i.e. not an extension-generated repo). This makes no sense, so this change simple deletes that enforcement. To compensate for the lack of checks whether the repo exists at all, we add an additional check after requesting the BzlmodRepoRuleValues that all requested repos must exist. Fixes bazelbuild#21621 PiperOrigin-RevId: 615733963 Change-Id: Icf706b36f0e8d3c775bc26528948e5102910d4a0
…_repo` (#21694) Previously we enforced that the canonical repo name had to correspond to a module (i.e. not an extension-generated repo). This makes no sense, so this change simple deletes that enforcement. To compensate for the lack of checks whether the repo exists at all, we add an additional check after requesting the BzlmodRepoRuleValues that all requested repos must exist. Fixes #21621 Commit 5c2b37e PiperOrigin-RevId: 615733963 Change-Id: Icf706b36f0e8d3c775bc26528948e5102910d4a0 Co-authored-by: Googler <[email protected]>
A fix for this issue has been included in Bazel 7.1.1 RC1. Please test out the release candidate and report any issues as soon as possible. |
FYI @lberki |
Thanks! (any news about reporting something useful when there are modules/repositories that are in error but the one I am interested in is not?) |
I believe a successful resolution result is still a requirement for the |
That's why I think too, although I certainly hoped that that one somehow got fixed in the meantime |
I am still having the issue on
|
@wingsofovnia Thanks for reporting, we'll fix it. |
@bazel-io fork 7.2.0 |
Fixes bazelbuild#21621 (comment) PiperOrigin-RevId: 625286656 Change-Id: Ibc5d153af96912de39b146e50f081030d1da7257
) Fixes #21621 (comment) PiperOrigin-RevId: 625286656 Change-Id: Ibc5d153af96912de39b146e50f081030d1da7257 Commit 2d54af1 Co-authored-by: Googler <[email protected]>
Fixes bazelbuild#21621 (comment) PiperOrigin-RevId: 625286656 Change-Id: Ibc5d153af96912de39b146e50f081030d1da7257
A fix for this issue has been included in Bazel 7.2.0 RC1. Please test out the release candidate and report any issues as soon as possible. |
Description of the bug:
For a module extension generated repo, the following works:
However, it'll be nice to also also have
Which category does this issue belong to?
No response
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
In the Bazel repo, with Bazel 7.1.0rc2
Which operating system are you running Bazel on?
Linux
What is the output of
bazel info release
?7.1.0rc2
If
bazel info release
returnsdevelopment version
or(@non-git)
, tell us how you built Bazel.No response
What's the output of
git remote get-url origin; git rev-parse HEAD
?No response
Is this a regression? If yes, please try to identify the Bazel commit where the bug was introduced.
No response
Have you found anything relevant by searching the web?
No response
Any other information, logs, or outputs that you want to share?
No response
The text was updated successfully, but these errors were encountered: