-
Notifications
You must be signed in to change notification settings - Fork 442
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
bzlmod sneaks into a non-bzlmod build: very frequent recomputation of main repo mapping #2650
Comments
BTW, my .bazelrc looks like https://github.com/mvukov/rules_ros2/blob/main/.bazelrc. |
OK, looks like the culprit is |
My current understanding is that Bazel msg such as |
This also happens with the current rules_rust 0.45.1 and Bazel 7.1.2. |
Is this unique to rules_rust? Feels like a Bazel issue |
I've never experienced this behavior/issues from Bazel before I started working with rules_rust. Have you experienced something similar? Or you already switched to bzlmod? |
I believe "Computing main repo mapping" is output in Bazel 7 with or without bzlmod. I agree that this sounds like a general Bazel issue, though if there's some API rules_rust is using wrong which triggers it we'd be interested in fixing it! |
OK, thanks for the info. I also figured out in the meantime that Bazel 7.x always computes repo mappings. I think this issue is really about bzlmod vs nobzlmod in rules_rust. I created a minimal example in a new issue #2672. |
Hi, I recently started using Rust and rules_rust. At the moment I am at Bazel 7.1.1 and rules_rust 0.42.1. My workspace setup looks very similar to:
This setup works, I can compile stuff, that's not a problem. However, I very often get that Bazel wants to fetch crate index, rust, llvm repos:
Like, I edit a build or .bzl file, I get this. Almost always.
Also, I often get the messages like:
when running Bazel in one shell.
I've been working with Bazel for a while and I observe this behavior only since I started using rules_rust.
Am I missing something obvious?
The text was updated successfully, but these errors were encountered: