Skip to content

Commit

Permalink
Disable Bzlmod explicitly in .bazelrc (#2182)
Browse files Browse the repository at this point in the history
This will help make sure [Bazel Downstream
Pipeline](https://github.com/bazelbuild/continuous-integration/blob/master/docs/downstream-testing.md)
is green after enabling Bzlmod at Bazel@HEAD

See
bazelbuild/bazel#18958 (comment)

Related issue: #2181
  • Loading branch information
meteorcloudy authored Oct 6, 2023
1 parent 858fcfa commit a458757
Show file tree
Hide file tree
Showing 13 changed files with 56 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,12 @@ build --nolegacy_external_runfiles
## evaluated top to bottom.
###############################################################################

###############################################################################
## Bzlmod
###############################################################################

# TODO: migrate all dependencies from WORKSPACE to MODULE.bazel
# https://github.com/bazelbuild/rules_rust/issues/2181
common --noenable_bzlmod

try-import %workspace%/user.bazelrc
4 changes: 4 additions & 0 deletions examples/.bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ build:rustfmt --output_groups=+rustfmt_checks
build:clippy --aspects=@rules_rust//rust:defs.bzl%rust_clippy_aspect
build:clippy --output_groups=+clippy_checks

# TODO: migrate all dependencies from WORKSPACE to MODULE.bazel
# https://github.com/bazelbuild/rules_rust/issues/2181
common --noenable_bzlmod

# This import should always be last to allow users to override
# settings for local development.
try-import %workspace%/user.bazelrc
4 changes: 4 additions & 0 deletions examples/android/.bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,7 @@ startup --windows_enable_symlinks
build:windows --enable_runfiles

build --fat_apk_cpu=arm64-v8a

# TODO: migrate all dependencies from WORKSPACE to MODULE.bazel
# https://github.com/bazelbuild/rules_rust/issues/2181
common --noenable_bzlmod
4 changes: 4 additions & 0 deletions examples/crate_universe/.bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ build:clippy --output_groups=+clippy_checks
# external symlink in runfiles.
build --nolegacy_external_runfiles

# TODO: migrate all dependencies from WORKSPACE to MODULE.bazel
# https://github.com/bazelbuild/rules_rust/issues/2181
common --noenable_bzlmod

# This import should always be last to allow users to override
# settings for local development.
try-import %workspace%/user.bazelrc
Expand Down
4 changes: 4 additions & 0 deletions examples/crate_universe/cargo_aliases/.bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ build:strict --output_groups=+rustfmt_checks
build:strict --aspects=@rules_rust//rust:defs.bzl%rust_clippy_aspect
build:strict --output_groups=+clippy_checks

# TODO: migrate all dependencies from WORKSPACE to MODULE.bazel
# https://github.com/bazelbuild/rules_rust/issues/2181
common --noenable_bzlmod

# This import should always be last to allow users to override
# settings for local development.
try-import %workspace%/user.bazelrc
4 changes: 4 additions & 0 deletions examples/crate_universe/cargo_remote/.bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ build:strict --output_groups=+rustfmt_checks
build:strict --aspects=@rules_rust//rust:defs.bzl%rust_clippy_aspect
build:strict --output_groups=+clippy_checks

# TODO: migrate all dependencies from WORKSPACE to MODULE.bazel
# https://github.com/bazelbuild/rules_rust/issues/2181
common --noenable_bzlmod

# This import should always be last to allow users to override
# settings for local development.
try-import %workspace%/user.bazelrc
4 changes: 4 additions & 0 deletions examples/crate_universe/cargo_workspace/.bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ build:strict --output_groups=+rustfmt_checks
build:strict --aspects=@rules_rust//rust:defs.bzl%rust_clippy_aspect
build:strict --output_groups=+clippy_checks

# TODO: migrate all dependencies from WORKSPACE to MODULE.bazel
# https://github.com/bazelbuild/rules_rust/issues/2181
common --noenable_bzlmod

# This import should always be last to allow users to override
# settings for local development.
try-import %workspace%/user.bazelrc
4 changes: 4 additions & 0 deletions examples/crate_universe/multi_package/.bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ build:strict --output_groups=+rustfmt_checks
build:strict --aspects=@rules_rust//rust:defs.bzl%rust_clippy_aspect
build:strict --output_groups=+clippy_checks

# TODO: migrate all dependencies from WORKSPACE to MODULE.bazel
# https://github.com/bazelbuild/rules_rust/issues/2181
common --noenable_bzlmod

# This import should always be last to allow users to override
# settings for local development.
try-import %workspace%/user.bazelrc
4 changes: 4 additions & 0 deletions examples/crate_universe/no_cargo_manifests/.bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ build:strict --output_groups=+rustfmt_checks
build:strict --aspects=@rules_rust//rust:defs.bzl%rust_clippy_aspect
build:strict --output_groups=+clippy_checks

# TODO: migrate all dependencies from WORKSPACE to MODULE.bazel
# https://github.com/bazelbuild/rules_rust/issues/2181
common --noenable_bzlmod

# This import should always be last to allow users to override
# settings for local development.
try-import %workspace%/user.bazelrc
4 changes: 4 additions & 0 deletions examples/crate_universe_unnamed/.bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ build:rustfmt --output_groups=+rustfmt_checks
build:clippy --aspects=@rules_rust//rust:defs.bzl%rust_clippy_aspect
build:clippy --output_groups=+clippy_checks

# TODO: migrate all dependencies from WORKSPACE to MODULE.bazel
# https://github.com/bazelbuild/rules_rust/issues/2181
common --noenable_bzlmod

# This import should always be last to allow users to override
# settings for local development.
try-import %workspace%/user.bazelrc
4 changes: 4 additions & 0 deletions examples/ios/.bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@ build:windows --enable_runfiles
build --apple_crosstool_top=@local_config_apple_cc//:toolchain
build --crosstool_top=@local_config_apple_cc//:toolchain
build --host_crosstool_top=@local_config_apple_cc//:toolchain

# TODO: migrate all dependencies from WORKSPACE to MODULE.bazel
# https://github.com/bazelbuild/rules_rust/issues/2181
common --noenable_bzlmod
4 changes: 4 additions & 0 deletions examples/ios_build/.bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@ build:windows --enable_runfiles
build --apple_crosstool_top=@local_config_apple_cc//:toolchain
build --crosstool_top=@local_config_apple_cc//:toolchain
build --host_crosstool_top=@local_config_apple_cc//:toolchain

# TODO: migrate all dependencies from WORKSPACE to MODULE.bazel
# https://github.com/bazelbuild/rules_rust/issues/2181
common --noenable_bzlmod
4 changes: 4 additions & 0 deletions examples/zig_cross_compiling/.bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,7 @@ startup --windows_enable_symlinks
build:windows --enable_runfiles

build --incompatible_enable_cc_toolchain_resolution

# TODO: migrate all dependencies from WORKSPACE to MODULE.bazel
# https://github.com/bazelbuild/rules_rust/issues/2181
common --noenable_bzlmod

0 comments on commit a458757

Please sign in to comment.