From 3dfa3826c7e5706391aa1af9382c1ed3507e154b Mon Sep 17 00:00:00 2001 From: Yun Peng Date: Wed, 20 Nov 2024 18:34:37 +0100 Subject: [PATCH] Use com_google_protobuf as repo name for protobuf (#6) --- java/BUILD.bazel | 2 +- java/MODULE.bazel | 2 +- proto/BUILD.bazel | 2 +- proto/MODULE.bazel | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java/BUILD.bazel b/java/BUILD.bazel index 4be29a6..adc3476 100644 --- a/java/BUILD.bazel +++ b/java/BUILD.bazel @@ -1,4 +1,4 @@ -load("@protobuf//bazel:java_proto_library.bzl", "java_proto_library") +load("@com_google_protobuf//bazel:java_proto_library.bzl", "java_proto_library") package(default_visibility = ["//visibility:public"]) diff --git a/java/MODULE.bazel b/java/MODULE.bazel index 86fd035..ab9c6f9 100644 --- a/java/MODULE.bazel +++ b/java/MODULE.bazel @@ -5,7 +5,7 @@ module( bazel_dep(name = "bazel_worker_api", version = "0.0.1") bazel_dep(name = "rules_jvm_external", version = "6.2") -bazel_dep(name = "protobuf", version = "27.2") +bazel_dep(name = "protobuf", version = "27.2", repo_name = "com_google_protobuf") bazel_dep(name = "rules_java", version = "7.12.2") maven = use_extension("@rules_jvm_external//:extensions.bzl", "maven") diff --git a/proto/BUILD.bazel b/proto/BUILD.bazel index 5fd76fe..44b064b 100644 --- a/proto/BUILD.bazel +++ b/proto/BUILD.bazel @@ -1,4 +1,4 @@ -load("@protobuf//bazel:proto_library.bzl", "proto_library") +load("@com_google_protobuf//bazel:proto_library.bzl", "proto_library") package(default_visibility = ["//visibility:public"]) diff --git a/proto/MODULE.bazel b/proto/MODULE.bazel index 04f5599..c38d7cb 100644 --- a/proto/MODULE.bazel +++ b/proto/MODULE.bazel @@ -3,4 +3,4 @@ module( version = "0", ) -bazel_dep(name = "protobuf", version = "27.2") +bazel_dep(name = "protobuf", version = "27.2", repo_name = "com_google_protobuf")