You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Those BUILD files end up in MODULE.bazel.lock in generatedRepoSpecs so that those lock files cannot be easily compared or updated under Windows.
Example from external/rules_rust~~crate~crates/BUILD.bazel, note that some lines end up with ^M but some do not.
1###############################################################################^M2# @generated^M3# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To ^M4# regenerate this file, run the following:^M5#^M6# bazel mod show_repo 'all_crate_deps_bzlmod_example'^M7###############################################################################89package(default_visibility= ["//visibility:public"])
1011exports_files(
To reproduce on current HEAD:
Go to rules_rust/examples/all_crate_deps
Remove MODULE.bazel.lock
Change MODULE.bazel to use released version of rules_rust instead of dev NOTE: The issue does not show up when using local_path_override
Diff
diff --git a/examples/all_crate_deps/MODULE.bazel b/examples/all_crate_deps/MODULE.bazel
index 298ce264..9a78d4ae 100644
--- a/examples/all_crate_deps/MODULE.bazel+++ b/examples/all_crate_deps/MODULE.bazel@@ -16,11 +16,7 @@ bazel_dep(
)
bazel_dep(
name = "rules_rust",
- version = "0.0.0",-)-local_path_override(- module_name = "rules_rust",- path = "../..",+ version = "0.57.0",
)
Those BUILD files end up in
MODULE.bazel.lock
ingeneratedRepoSpecs
so that those lock files cannot be easily compared or updated under Windows.Example from
external/rules_rust~~crate~crates/BUILD.bazel
, note that some lines end up with ^M but some do not.To reproduce on current HEAD:
MODULE.bazel.lock
NOTE: The issue does not show up when using local_path_override
Diff
rust = use_extension("@rules_rust//rust:extensions.bzl", "rust")
bazel.exe build :all_crate_deps
bazel-all_crate_deps/external/rules_rust~~crate~crates/BUILD.bazel
The text was updated successfully, but these errors were encountered: