-
Notifications
You must be signed in to change notification settings - Fork 431
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
Support for --incompatible_use_plus_in_repo_names
#2801
Comments
According to to this engflow blog post, there is a real chance the canonical name will change again in the future... |
#2844 Is sufficient for getting all of |
I have multiple examples over at the bazel/examples repo that are currently failing with Bazel v8. All examples use the latest rules release 0.50.1 Repro: I don't know if it is the same issue as this one, but I want to bring this up and share the repro. |
The error I am seeing with Bazel 8.0.0-pre.20240826.1 (2024-09-07): bazel build //...
ERROR: /private/var/tmp/_bazel_marvin/2ca8fbba9913b18ada099dc013e74ad8/external/rules_rust+/crate_universe/private/module_extensions/cargo_bazel_bootstrap.bzl:66:17: Traceback (most recent call last):
File "/private/var/tmp/_bazel_marvin/2ca8fbba9913b18ada099dc013e74ad8/external/rules_rust+/crate_universe/extension.bzl", line 369, column 37, in _crate_impl
_generate_hub_and_spokes(module_ctx, cargo_bazel, cfg, annotations, cargo_lockfile = cargo_lockfile, manifests = manifests)
File "/private/var/tmp/_bazel_marvin/2ca8fbba9913b18ada099dc013e74ad8/external/rules_rust+/crate_universe/extension.bzl", line 139, column 16, in _generate_hub_and_spokes
cargo_bazel([
File "/private/var/tmp/_bazel_marvin/2ca8fbba9913b18ada099dc013e74ad8/external/rules_rust+/crate_universe/private/module_extensions/cargo_bazel_bootstrap.bzl", line 66, column 17, in run
fail("%s returned with exit code %d:\n%s" % (pretty_args, result.return_code, result.stderr
/2ca8fbba9913b18ada099dc013e74ad8/external/rules_rust++rust_host_tools+rust_host_tools/bin/rustc returned with exit code 101:
thread 'main' panicked at src/utils.rs:49:22:
Could not rename paths: Os { code: 2, kind: NotFound, message: "No such file or directory" }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
ERROR: error evaluating module extension crate in @@rules_rust+//crate_universe:extension.bzl
INFO: Elapsed time: 1.890s
INFO: 0 processes.
ERROR: Build did NOT complete successfully
FAILED:
Fetching ... @@rules_rust+//crate_universe:extension.bzl; starting |
we're getting the same problem with https://github.com/bazelbuild/intellij - we can't call |
Fixed by #2908. |
Bazel 7.3.0 introduced
--incompatible_use_plus_in_repo_names
which changes the bzlmod separator from ~ to + (for performance reasons on Windows). This flag will be flipped with 8.0.0.Flipping that flag currently is incompatible with
rules_rust
, as (at least) thecrate_universe
code assumes that the separator is ~.Im getting
with rules_rust 0.49.1, and I've not seen anything in the changelog or source code that'd indicate that upgrading to the latest release would help.
The text was updated successfully, but these errors were encountered: