From eee416bdd76a487f6b2b8713fb1444cf6f99473d Mon Sep 17 00:00:00 2001 From: Fabian Meumertzheim Date: Wed, 14 Feb 2024 12:04:37 -0800 Subject: [PATCH] Temporarily hardcode rules_java repository name Fixes #21350 Closes #21351. PiperOrigin-RevId: 607063055 Change-Id: Ia80ba907d04718205658c3ad5d5fc801caf94535 --- src/test/shell/bazel/BUILD | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/test/shell/bazel/BUILD b/src/test/shell/bazel/BUILD index f3e7307bbba6ac..16ff354d0d8029 100644 --- a/src/test/shell/bazel/BUILD +++ b/src/test/shell/bazel/BUILD @@ -1,6 +1,5 @@ load("@bazel_skylib//rules:write_file.bzl", "write_file") load("//:workspace_deps.bzl", "gen_workspace_stanza") -load("//src/tools/bzlmod:utils.bzl", "get_canonical_repo_name") package(default_visibility = ["//visibility:private"]) @@ -221,7 +220,9 @@ sh_test( write_file( name = "gen_rules_java_repo_name", out = "RULES_JAVA_REPO_NAME", - content = [get_canonical_repo_name("@rules_java")], + # TODO: Revert to the following when building with Bazel 7.1.0. + # content = [get_canonical_repo_name("@rules_java")], + content = ["rules_java~"], ) sh_test(