-
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
Invalid bzlmod overrides are ignored #17125
Comments
Hello @keith, Could you please provide minimal steps to reproduce the above issue. Thanks! |
Yea the repro case is if you have a MODULE.bazel with:
and you have a BUILD file with: cc_library(name = "main", srcs = ["main.c"]) and
building with |
This should be easy to check. A line around https://cs.opensource.google/bazel/bazel/+/master:src/main/java/com/google/devtools/build/lib/bazel/bzlmod/BazelModuleResolutionFunction.java;l=85;drc=9860051afe7ccf0902f1ce3dbbc9066088d7c849 should suffice. PRs welcome :) |
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 |
Hi @keith @Wyverald and Bazel team, |
Sounds good! |
If you have some
archive_override
in your MODULE.bazel file that attempts to override a repository that doesn't exist, bazel silently ignores it. I think ideally bazel would error in this case, since it likely points to you trying to override something that you're not pulling in at all.The text was updated successfully, but these errors were encountered: