-
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
nobzlmod behaves very differently than bzlmod #2672
Comments
@Wyverald might know more. You might want to try USE_BAZEL_VERSION=6.5.0 (with bazelisk). Bazel 7.0 flipped bzlmod on by default, so it could be related to that. |
I don't reproduce this. My guess from the "Another command is running" part is that you have rust analyzer or something running in the repo, and that it's running a bazel command with a different configuration (e.g. different env vars set) which is thrashing your in-memory caches? |
I thought about that. The steps I listed above are from a single terminal session, no e.g. vscode terminal. FWIW, my installation doesn't have rust-analyzer. Digging deeper... |
OK, this issue seems to be related to vscode Bazel extension. I just removed it and I don't observe the behavior above. It's not a big issue for me as I used the extension only for syntax highlighting anyway. On the other hand, this is very strange, as this behavior only happens with rules_rust. |
Related to #2650 , now I made small minimum example in a separate repo: https://github.com/mvukov/rules_rust_bzlmod_vs_nobzlmod.
bzlmod works as expected:
nobzlmod behaves funky:
and now the drama starts, the first thing I see is:
and after a couple of seconds:
... where this step also takes some seconds to complete.
My machine runs on Ubuntu 22.04, Bazel version is 7.1.2.
I'd like to help, but honestly I don't know where to start.
The text was updated successfully, but these errors were encountered: