diff --git a/src/main/java/com/google/devtools/build/lib/bazel/repository/local_config_platform.WORKSPACE b/src/main/java/com/google/devtools/build/lib/bazel/repository/local_config_platform.WORKSPACE index 901b3f3ae8653c..8f293a91529254 100644 --- a/src/main/java/com/google/devtools/build/lib/bazel/repository/local_config_platform.WORKSPACE +++ b/src/main/java/com/google/devtools/build/lib/bazel/repository/local_config_platform.WORKSPACE @@ -6,12 +6,18 @@ maybe( path = __embedded_dir__ + "/platforms", ) +maybe( + local_repository, + "internal_platforms_do_not_use", + path = __embedded_dir__ + "/platforms", +) + maybe( local_config_platform, "local_config_platform", ) -load("@platforms//host:extension.bzl", "host_platform_repo") +load("@internal_platforms_do_not_use//host:extension.bzl", "host_platform_repo") maybe( host_platform_repo, "host_platform", diff --git a/src/test/java/com/google/devtools/build/lib/analysis/mock/BazelAnalysisMock.java b/src/test/java/com/google/devtools/build/lib/analysis/mock/BazelAnalysisMock.java index 913550c9882a02..ec13088327072b 100644 --- a/src/test/java/com/google/devtools/build/lib/analysis/mock/BazelAnalysisMock.java +++ b/src/test/java/com/google/devtools/build/lib/analysis/mock/BazelAnalysisMock.java @@ -81,6 +81,9 @@ public ImmutableList getWorkspaceContents(MockToolsConfig config) { "bind(name = 'has_androidsdk', actual = '@bazel_tools//tools/android:always_false')", "local_repository(name = 'bazel_tools', path = '" + bazelToolWorkspace + "')", "local_repository(name = 'platforms', path = '" + bazelPlatformsWorkspace + "')", + "local_repository(name = 'internal_platforms_do_not_use', path = '" + + bazelPlatformsWorkspace + + "')", "local_repository(name = 'local_config_xcode', path = '" + xcodeWorkspace + "')", "local_repository(name = 'com_google_protobuf', path = '" + protobufWorkspace + "')", "local_repository(name = 'rules_java', path = '" + rulesJavaWorkspace + "')", @@ -108,6 +111,7 @@ public ImmutableList getWorkspaceRepos() { "com_google_protobuf", "local_config_xcode", "platforms", + "internal_platforms_do_not_use", "rules_java", "rules_java_builtin", "build_bazel_apple_support");