Skip to content

Commit 13dd3c4

Browse files
Wyveraldmeteorcloudyhvadehra
authored
[9.1.0] Update MODULE.bazel and .bazelversion for 9.1.0 (#28375)
Along with cherry-picks to fix the build: * 58822ce * f0ec350 * 92de49c * 7c2c3b1 * 8a3eb60 * 0e14ff0 --------- Co-authored-by: pcloudy <[email protected]> Co-authored-by: hvd <[email protected]>
1 parent ec65340 commit 13dd3c4

File tree

13 files changed

+417
-213
lines changed

13 files changed

+417
-213
lines changed

.bazelci/postsubmit.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -300,8 +300,6 @@ tasks:
300300
- "--config=remote"
301301
- "--remote_executor=grpcs://remotebuildexecution.googleapis.com"
302302
- "--jobs=200"
303-
- "--experimental_remote_cache_async"
304-
- "--experimental_remote_merkle_tree_cache"
305303
- "--remote_download_minimal"
306304
- "--experimental_output_paths=strip"
307305
build_targets:
@@ -312,8 +310,6 @@ tasks:
312310
- "--config=remote"
313311
- "--remote_executor=grpcs://remotebuildexecution.googleapis.com"
314312
- "--jobs=200"
315-
- "--experimental_remote_cache_async"
316-
- "--experimental_remote_merkle_tree_cache"
317313
- "--remote_download_minimal"
318314
- "--experimental_output_paths=strip"
319315
test_targets:

.bazelci/presubmit.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -308,8 +308,6 @@ tasks:
308308
- "--config=remote"
309309
- "--remote_executor=grpcs://remotebuildexecution.googleapis.com"
310310
- "--jobs=200"
311-
- "--experimental_remote_cache_async"
312-
- "--experimental_remote_merkle_tree_cache"
313311
- "--remote_download_minimal"
314312
- "--experimental_output_paths=strip"
315313
build_targets:
@@ -320,8 +318,6 @@ tasks:
320318
- "--config=remote"
321319
- "--remote_executor=grpcs://remotebuildexecution.googleapis.com"
322320
- "--jobs=200"
323-
- "--experimental_remote_cache_async"
324-
- "--experimental_remote_merkle_tree_cache"
325321
- "--remote_download_minimal"
326322
- "--experimental_output_paths=strip"
327323
test_targets:

.bazelrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ common --downloader_config=bazel_downloader.cfg
3535
# Add BCR module mirrors
3636
common --module_mirrors=https://bcr.cloudflaremirrors.com
3737

38+
# Some integration tests need the PATH environment variable set.
39+
common --test_env=PATH
40+
3841
# Suppress warnings from external repos, we have no direct control on them anyway.
3942
common:linux --per_file_copt=external/.*@-w
4043
common:linux --host_per_file_copt=external/.*@-w

.bazelversion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
8.4.2
1+
9.0.0

MODULE.bazel

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
module(
77
name = "bazel",
8-
version = "9.0.0",
8+
version = "9.1.0",
99
repo_name = "io_bazel",
1010
)
1111

@@ -26,7 +26,7 @@ bazel_dep(name = "platforms", version = "1.0.0")
2626
bazel_dep(name = "protobuf", version = "33.4", repo_name = "com_google_protobuf")
2727
bazel_dep(name = "re2", version = "2025-11-05.bcr.1")
2828
bazel_dep(name = "rules_graalvm", version = "0.11.1")
29-
bazel_dep(name = "rules_java", version = "9.0.3")
29+
bazel_dep(name = "rules_java", version = "9.1.0")
3030
bazel_dep(name = "rules_jvm_external", version = "6.6")
3131
bazel_dep(name = "rules_license", version = "1.0.0")
3232
bazel_dep(name = "rules_pkg", version = "1.1.0")
@@ -57,6 +57,7 @@ bazel_dep(name = "buildozer", version = "8.2.1", repo_name = None) # Keep in sy
5757
bazel_dep(name = "rules_swift", version = "3.3.0") # with repo_name = None, version drops to 2.4.0
5858
bazel_dep(name = "rules_apple", version = "4.3.1", repo_name = None)
5959
bazel_dep(name = "google_benchmark", version = "1.9.4", repo_name = None)
60+
bazel_dep(name = "onetbb", version = "2022.2.0", repo_name = None)
6061

6162
# bazel_dep overrides
6263
single_version_override(
@@ -74,6 +75,7 @@ single_version_override(
7475
"//third_party:rules_graalvm_fix.patch",
7576
"//third_party:rules_graalvm_unicode.patch",
7677
"//third_party:rules_graalvm_load_fix.patch",
78+
"//third_party:rules_graalvm_bazel9_fixes.patch",
7779
],
7880
)
7981

MODULE.bazel.lock

Lines changed: 62 additions & 195 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/MODULE.tools

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ use_repo(buildozer_binary, "buildozer_binary")
3333
# Dependencies used to auto-load removed symbols and rules from Bazel (due to Starlarkification)
3434
# See also: --incompatible_autoload_externally, AutoloadSymbols
3535
bazel_dep(name = "protobuf", version = "33.4", repo_name = "com_google_protobuf")
36-
bazel_dep(name = "rules_java", version = "9.0.3")
36+
bazel_dep(name = "rules_java", version = "9.1.0")
3737
bazel_dep(name = "rules_cc", version = "0.2.14")
3838
bazel_dep(name = "rules_python", version = "1.7.0")
3939
bazel_dep(name = "rules_shell", version = "0.6.1")

src/main/cpp/option_processor.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ std::vector<BlazercOption> OptionProcessor::GetBlazercOptions(
636636
// Provide terminal options as least important options.
637637
// LINT.IfChange
638638
std::string terminal_rc_source = "client";
639-
// LINT.ThenChange(src/main/java/com/google/devtools/common/options/GlobalRcUtils.java)
639+
// LINT.ThenChange(//src/main/java/com/google/devtools/common/options/GlobalRcUtils.java)
640640
result.push_back({terminal_rc_source, "common",
641641
"--isatty=" + blaze_util::ToString(IsStandardTerminal())});
642642
result.push_back(
@@ -678,7 +678,7 @@ std::vector<std::string> OptionProcessor::GetBlazercAndEnvCommandArgs(
678678
// LINT.IfChange
679679
result.push_back("--rc_source=client");
680680
rcfile_index["client"] = 0;
681-
// LINT.ThenChange(src/main/java/com/google/devtools/common/options/GlobalRcUtils.java)
681+
// LINT.ThenChange(//src/main/java/com/google/devtools/common/options/GlobalRcUtils.java)
682682
int cur_index = 1;
683683
for (const auto& option : blazerc_options) {
684684
if (rcfile_index.contains(option.source_path)) continue;

src/main/java/com/google/devtools/common/options/GlobalRcUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ private GlobalRcUtils() {}
5555
return false;
5656
};
5757
// LINT.ThenChange(//src/main/cpp/option_processor.cc,
58-
// src/main/java/com/google/devtools/common/options/InvocationPolicyEnforcer.java
58+
// //src/main/java/com/google/devtools/common/options/InvocationPolicyEnforcer.java)
5959

6060
/** Is an rc file path a global rc? */
6161
public static boolean isGlobalRcFile(String rcFilePath) {

src/main/java/com/google/devtools/common/options/InvocationPolicyEnforcer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public final class InvocationPolicyEnforcer {
5353

5454
// LINT.IfChange
5555
private static final String INVOCATION_POLICY_SOURCE = "Invocation policy";
56-
// LINT.ThenChange(//src/main/java/com/google/devtools/common/options/GlobalRcUtils.java, src/main/java/com/google/devtools/common/options/GlobalRcUtils.java)
56+
// LINT.ThenChange(//src/main/java/com/google/devtools/common/options/GlobalRcUtils.java, //src/main/java/com/google/devtools/common/options/GlobalRcUtils.java.oss)
5757
private final InvocationPolicy invocationPolicy;
5858
private final Level loglevel;
5959
@Nullable private final Object conversionContext;

0 commit comments

Comments
 (0)