treewide: bump to bazel 8
Change-Id: I18b6b4a5893167d722bb6270f11da1814c1664e3
Reviewed-on: https://review.monogon.dev/c/monogon/+/3963
Tested-by: Jenkins CI
Reviewed-by: Leopold Schabel <leo@monogon.tech>
diff --git a/third_party/bazelrc/aspect/BUILD.bazel b/third_party/bazelrc/aspect/BUILD.bazel
index 4a870ae..300958e 100644
--- a/third_party/bazelrc/aspect/BUILD.bazel
+++ b/third_party/bazelrc/aspect/BUILD.bazel
@@ -5,7 +5,7 @@
write_aspect_bazelrc_presets(
name = "update_aspect_bazelrc_presets",
presets = [
- "bazel7",
+ "bazel8",
"ci",
"convenience",
"correctness",
diff --git a/third_party/bazelrc/aspect/bazel7.bazelrc b/third_party/bazelrc/aspect/bazel7.bazelrc
deleted file mode 100644
index 0a26362..0000000
--- a/third_party/bazelrc/aspect/bazel7.bazelrc
+++ /dev/null
@@ -1,23 +0,0 @@
-# Speed up all builds by not checking if external repository files have been modified.
-# Docs: https://github.com/bazelbuild/bazel/blob/1af61b21df99edc2fc66939cdf14449c2661f873/src/main/java/com/google/devtools/build/lib/bazel/repository/RepositoryOptions.java#L244
-common --noexperimental_check_external_repository_files
-
-# Don't report when the root module's lower bound for a dependency happens to be less than the resolved version.
-# This is expected and should NOT prompt an engineer to update our lower bound to match.
-# WARNING: For repository 'aspect_bazel_lib', the root module requires module version aspect_bazel_lib@1.30.2,
-# but got aspect_bazel_lib@1.31.2 in the resolved dependency graph.
-common --check_direct_dependencies=off
-
-# Directories used by sandboxed non-worker execution may be reused to avoid unnecessary setup costs.
-# Save time on Sandbox creation and deletion when many of the same kind of action run during the
-# build.
-# Docs: https://bazel.build/reference/command-line-reference#flag--reuse_sandbox_directories
-build --reuse_sandbox_directories
-
-# Do not build runfiles symlink forests for external repositories under
-# `.runfiles/wsname/external/repo` (in addition to `.runfiles/repo`). This reduces runfiles &
-# sandbox creation times & prevents accidentally depending on this feature which may flip to off by
-# default in the future. Note, some rules may fail under this flag, please file issues with the rule
-# author.
-# Docs: https://bazel.build/reference/command-line-reference#flag--legacy_external_runfiles
-build --nolegacy_external_runfiles
diff --git a/third_party/bazelrc/aspect/bazel8.bazelrc b/third_party/bazelrc/aspect/bazel8.bazelrc
new file mode 100644
index 0000000..e01f897
--- /dev/null
+++ b/third_party/bazelrc/aspect/bazel8.bazelrc
@@ -0,0 +1 @@
+# No Bazel 8 specific flag presets yet.
diff --git a/third_party/nix/env.nix b/third_party/nix/env.nix
index c48b589..26130a1 100644
--- a/third_party/nix/env.nix
+++ b/third_party/nix/env.nix
@@ -40,8 +40,8 @@
(stdenv.mkDerivation {
name = "bazel";
src = builtins.fetchurl {
- url = "https://github.com/bazelbuild/bazel/releases/download/7.4.1/bazel-7.4.1-linux-x86_64";
- sha256 = "0ar0qvxa3a7bms4baa84r1aq5yk53prc32k75063zrnw789h4zy9";
+ url = "https://github.com/bazelbuild/bazel/releases/download/8.1.0/bazel-8.1.0-linux-x86_64";
+ sha256 = "19dwgh631d6c1m4ds1b1b3pbz18zm5i0x8bggjgsc04fyljfbfml";
};
unpackPhase = ''
true