diff --git a/BUILD b/BUILD index 9c9f148e07012a..1c0ce05a9a3303 100644 --- a/BUILD +++ b/BUILD @@ -164,9 +164,6 @@ pkg_tar( remap_paths = { "MODULE.bazel.lock.dist": "MODULE.bazel.lock", "WORKSPACE.bzlmod.filtered": "WORKSPACE.bzlmod", - # Rewrite paths coming from local repositories back into third_party. - "external/googleapis~override": "third_party/googleapis", - "external/remoteapis~override": "third_party/remoteapis", }, strip_prefix = ".", # Public but bazel-only visibility. diff --git a/third_party/BUILD b/third_party/BUILD index b43e26c00bb96b..35a244fc010e50 100644 --- a/third_party/BUILD +++ b/third_party/BUILD @@ -12,6 +12,7 @@ filegroup( "//third_party/android_dex:srcs", "//third_party/cncf_udpa:srcs", "//third_party/def_parser:srcs", + "//third_party/googleapis:srcs", "//third_party/grpc:srcs", "//third_party/grpc-java:srcs", "//third_party/ijar:srcs", @@ -33,9 +34,8 @@ filegroup( "//third_party/py/frozendict:srcs", "//third_party/py/mock:srcs", "//third_party/py/six:srcs", + "//third_party/remoteapis:srcs", "//third_party/zlib:srcs", - "@googleapis//:srcs", - "@remoteapis//:srcs", ], )