diff --git a/src/google/protobuf/compiler/BUILD.bazel b/src/google/protobuf/compiler/BUILD.bazel index e85d9f5854..f5d04b0ac8 100644 --- a/src/google/protobuf/compiler/BUILD.bazel +++ b/src/google/protobuf/compiler/BUILD.bazel @@ -200,7 +200,11 @@ filegroup( filegroup( name = "plugin_proto_src", srcs = ["plugin.proto"], - visibility = ["//upb:__subpackages__"], + visibility = [ + "//upb:__subpackages__", + # For compatibility with workspaces that still use the old upb repo + "@upb//:__subpackages__", + ], ) exports_files(