-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Allow --override_repository to accept apparent repo names (as seen from the main repo), in addition to canonical repo names #17128
Comments
This also doesn't work if you use |
in a quick test just allowing uppercase module names also doesn't work, but i imagine they could be being transformed elsewhere as well. |
"Yams" here isn't a module -- it's not from a registry, doesn't participate in version resolution, etc. You can use |
Good to have that workaround. Is this something you plan to improve? |
Hmm... I think one way to improve this might be to let |
Thank you for contributing to the Bazel repository! This issue has been marked as stale since it has not had any activity in the last 30 days. It will be closed in the next 7 days unless any other activity occurs or the "not stale" label is added. |
@keertk not stale, triaged and not waiting for input |
Until bazelbuild/bazel#17128 (comment) is implemented, there is no clean way to override an erlang package. So at least let's try doing our best, and just check afterwards that it actually worked.
Until bazelbuild/bazel#17128 (comment) is implemented, there is no clean way to override an erlang package. So at least let's try doing our best, and just check afterwards that it actually worked.
Until bazelbuild/bazel#17128 (comment) is implemented, there is no clean way to override an erlang package. So at least let's try doing our best, and just check afterwards that it actually worked.
@bazel-io fork 7.0.0 |
After taking a brief look, I realized that this is actually surprisingly annoying to implement. This would be a rare flag that influences repo fetching / Bzlmod resolution, but also relies on the result of repo fetching / Bzlmod resolution (calculating the main repo mapping might require 'fetching' bazel_tools, for example). We could make Alternatively, we could somehow remember that some apparent repo names were passed to So I'm going to remove this from the 7.0 blockers and maybe tackle it in the future instead. |
Description of the bug:
If you have a module extension with bzlmod that loads arbitrary http_archives like:
you cannot override it with
--override_module
because of the capital letter:--override_module=Yams=/Users/ksmiley/dev/Yams
:Using
---override_repository
also has no affect.I'm not sure if the bug here is that these names should be allowed, or if there should be a different way to override these
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
No response
Which operating system are you running Bazel on?
No response
What is the output of
bazel info release
?6.0.0rc4
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 master; git rev-parse HEAD
?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: