Skip to content

Commit a29089b

Browse files
authored
Bump min tested Bazel version to 7.4.1 (#3140)
1 parent 51ff049 commit a29089b

File tree

20 files changed

+54
-11
lines changed

20 files changed

+54
-11
lines changed

.bazelci/presubmit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
minimum_bazel_version: &minimum_bazel_version "7.3.1"
2+
minimum_bazel_version: &minimum_bazel_version "7.4.1"
33
aspects_flags: &aspects_flags
44
- "--config=rustfmt"
55
- "--config=clippy"

.bazelrc

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,8 @@ build --nolegacy_external_runfiles
6060
# Required for cargo_build_script support before Bazel 7
6161
build --incompatible_merge_fixed_and_default_shell_env
6262

63-
# When our minimum bazel version reaches >= 7.4.0, we should uncomment the
64-
# following line to guarantee that rules_rust does not rely on autoloading;
65-
# see https://github.com/bazelbuild/bazel/issues/23043 for details.
66-
# build --incompatible_autoload_externally=
63+
# https://github.com/bazelbuild/bazel/issues/23043.
64+
build --incompatible_autoload_externally=
6765

6866
###############################################################################
6967
## Bzlmod

docs/src/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ Failure to do so will result in rules attempting to match a `stable` toolchain w
8585

8686
## Supported bazel versions
8787

88-
The oldest version of Bazel the `main` branch is tested against is `7.3.1`. Previous versions may still be functional in certain environments, but this is the minimum version we strive to fully support.
88+
The oldest version of Bazel the `main` branch is tested against is `7.4.1`. Previous versions may still be functional in certain environments, but this is the minimum version we strive to fully support.
8989

9090
We test these rules against the latest rolling releases of Bazel, and aim for compatibility with them, but prioritise stable releases over rolling releases where necessary.
9191

examples/bazel_env/.bazelrc

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,8 @@ build --nolegacy_external_runfiles
3333
# Required for cargo_build_script support before Bazel 7
3434
build --incompatible_merge_fixed_and_default_shell_env
3535

36-
# When our minimum bazel version reaches >= 7.4.0, we should uncomment the
37-
# following line to guarantee that rules_rust does not rely on autoloading;
38-
# see https://github.com/bazelbuild/bazel/issues/23043 for details.
39-
# build --incompatible_autoload_externally=
36+
# https://github.com/bazelbuild/bazel/issues/23043.
37+
build --incompatible_autoload_externally=
4038

4139
###############################################################################
4240
## Bzlmod

examples/bzlmod/all_crate_deps/.bazelrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,6 @@ build --incompatible_disallow_empty_glob
1010

1111
# Required for cargo_build_script support before Bazel 7
1212
build --incompatible_merge_fixed_and_default_shell_env
13+
14+
# https://github.com/bazelbuild/bazel/issues/23043.
15+
build --incompatible_autoload_externally=

examples/bzlmod/compile_opt/.bazelrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,6 @@ build --incompatible_disallow_empty_glob
88

99
# Required for cargo_build_script support before Bazel 7
1010
build --incompatible_merge_fixed_and_default_shell_env
11+
12+
# https://github.com/bazelbuild/bazel/issues/23043.
13+
build --incompatible_autoload_externally=

examples/bzlmod/cross_compile/.bazelrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ build --incompatible_disallow_empty_glob
88
# Required for cargo_build_script support before Bazel 7
99
build --incompatible_merge_fixed_and_default_shell_env
1010

11+
# https://github.com/bazelbuild/bazel/issues/23043.
12+
build --incompatible_autoload_externally=
13+
1114
## Cross compilation configuration
1215
# Debug toolchain resolution
1316
# build --toolchain_resolution_debug='@bazel_tools//tools/cpp:toolchain_type

examples/bzlmod/hello_world/.bazelrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,6 @@ build --incompatible_disallow_empty_glob
1010

1111
# Required for cargo_build_script support before Bazel 7
1212
build --incompatible_merge_fixed_and_default_shell_env
13+
14+
# https://github.com/bazelbuild/bazel/issues/23043.
15+
build --incompatible_autoload_externally=

examples/bzlmod/hello_world_no_cargo/.bazelrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,6 @@ common --enable_runfiles
44

55
# Required for cargo_build_script support before Bazel 7
66
build --incompatible_merge_fixed_and_default_shell_env
7+
8+
# https://github.com/bazelbuild/bazel/issues/23043.
9+
build --incompatible_autoload_externally=

examples/bzlmod/override_target/.bazelrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,6 @@ build --incompatible_disallow_empty_glob
1010

1111
# Required for cargo_build_script support before Bazel 7
1212
build --incompatible_merge_fixed_and_default_shell_env
13+
14+
# https://github.com/bazelbuild/bazel/issues/23043.
15+
build --incompatible_autoload_externally=

0 commit comments

Comments
 (0)