Skip to content

Commit fb91556

Browse files
committed
Upgrade bazel to 8.0.0.
Previously, we were using 8.0.0rc1. In particular, this upgrade means we need to explicitly import more rules, as they've been moved out of the core bazel repo.
1 parent 7dd10f7 commit fb91556

File tree

13 files changed

+20
-2
lines changed

13 files changed

+20
-2
lines changed

.bazelrc

+3
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,7 @@ common --registry=https://bcr.bazel.build
2424

2525
common --@rules_dotnet//dotnet/settings:strict_deps=false
2626

27+
# Require all rules to be loaded from somewhere, except java, which we'll deal with later
28+
common --incompatible_autoload_externally="+@rules_java"
29+
2730
try-import %workspace%/local.bazelrc

.bazelversion

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
8.0.0rc1
1+
8.0.0

MODULE.bazel

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ bazel_dep(name = "platforms", version = "0.0.10")
1818
bazel_dep(name = "rules_go", version = "0.50.0")
1919
bazel_dep(name = "rules_pkg", version = "1.0.1")
2020
bazel_dep(name = "rules_nodejs", version = "6.2.0-codeql.1")
21-
bazel_dep(name = "rules_python", version = "0.36.0")
21+
bazel_dep(name = "rules_python", version = "0.40.0")
22+
bazel_dep(name = "rules_shell", version = "0.3.0")
2223
bazel_dep(name = "bazel_skylib", version = "1.7.1")
2324
bazel_dep(name = "abseil-cpp", version = "20240116.0", repo_name = "absl")
2425
bazel_dep(name = "nlohmann_json", version = "3.11.3", repo_name = "json")

csharp/scripts/BUILD.bazel

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
load("@rules_python//python:defs.bzl", "py_binary")
2+
13
py_binary(
24
name = "gen-git-assembly-info",
35
srcs = ["gen-git-assembly-info.py"],

go/BUILD.bazel

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
load("@gazelle//:def.bzl", "gazelle")
22
load("@rules_pkg//pkg:mappings.bzl", "pkg_files")
3+
load("@rules_python//python:defs.bzl", "py_binary")
34
load("//misc/bazel:pkg.bzl", "codeql_pack", "codeql_pkg_files")
45

56
gazelle(

java/kotlin-extractor/BUILD.bazel

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ load(
4040
)
4141
load("@rules_kotlin//kotlin:core.bzl", "kt_javac_options", "kt_kotlinc_options")
4242
load("@rules_kotlin//kotlin:jvm.bzl", "kt_jvm_library")
43+
load("@rules_python//python:defs.bzl", "py_binary")
4344

4445
package(default_visibility = ["//java/kotlin-extractor:__subpackages__"])
4546

misc/codegen/BUILD.bazel

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
load("@rules_python//python:defs.bzl", "py_binary")
2+
13
py_binary(
24
name = "codegen",
35
srcs = ["codegen.py"],

misc/ripunzip/BUILD.bazel

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
load("@rules_shell//shell:sh_binary.bzl", "sh_binary")
2+
13
alias(
24
name = "ripunzip",
35
actual = select({"@platforms//os:" + os: "@ripunzip-" + os for os in ("linux", "windows", "macos")}),

python/extractor/BUILD.bazel

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
load("@rules_python//python:defs.bzl", "py_binary")
12
load("//misc/bazel:pkg.bzl", "codeql_pkg_files", "strip_prefix")
23

34
py_binary(

rust/codegen/BUILD.bazel

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
load("@bazel_skylib//rules:native_binary.bzl", "native_binary")
2+
load("@rules_shell//shell:sh_binary.bzl", "sh_binary")
23

34
_args = [
45
"//rust/ast-generator",

swift/extractor/BUILD.bazel

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
load("@rules_shell//shell:sh_binary.bzl", "sh_binary")
12
load("//misc/bazel:pkg.bzl", "codeql_pkg_runfiles")
23
load("//swift:rules.bzl", "swift_cc_binary")
34

swift/third_party/resource-dir/BUILD.bazel

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
load("@rules_shell//shell:sh_binary.bzl", "sh_binary")
2+
13
alias(
24
name = "resource-dir",
35
actual = select({"@platforms//os:" + os: "@swift-resource-dir-" + os for os in ("linux", "macos")}),

swift/tools/BUILD.bazel

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
load("@rules_shell//shell:sh_binary.bzl", "sh_binary")
12
load("//misc/bazel:pkg.bzl", "codeql_pkg_files")
23

34
sh_binary(

0 commit comments

Comments
 (0)