Skip to content

Commit

Permalink
Temporarily hardcode rules_java repository name
Browse files Browse the repository at this point in the history
Fixes #21350

Closes #21351.

PiperOrigin-RevId: 607063055
Change-Id: Ia80ba907d04718205658c3ad5d5fc801caf94535
  • Loading branch information
fmeum authored and copybara-github committed Feb 14, 2024
1 parent 071296f commit eee416b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/test/shell/bazel/BUILD
Original file line number Diff line number Diff line change
@@ -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"])

Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit eee416b

Please sign in to comment.