Skip to content

Commit 3c09f34

Browse files
meteorcloudycopybara-github
authored andcommitted
Add protobuf as a well known module
So that we can safely rename the module name of protobuf from com_google_protobuf to just protobuf. RELNOTES: None PiperOrigin-RevId: 405830339
1 parent becd149 commit 3c09f34

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • src/main/java/com/google/devtools/build/lib/bazel/bzlmod

src/main/java/com/google/devtools/build/lib/bazel/bzlmod/ModuleKey.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ public abstract class ModuleKey {
3434
* situation.
3535
*/
3636
private static final ImmutableMap<String, String> WELL_KNOWN_MODULES =
37-
ImmutableMap.of("com_google_protobuf", "com_google_protobuf");
37+
ImmutableMap.of(
38+
"com_google_protobuf", "com_google_protobuf", "protobuf", "com_google_protobuf");
3839

3940
public static final ModuleKey ROOT = create("", Version.EMPTY);
4041

0 commit comments

Comments
 (0)