diff --git a/modules/googleapis/0.0.0-20241220-5e258e33/MODULE.bazel b/modules/googleapis/0.0.0-20241220-5e258e33/MODULE.bazel index 29ab535276d..8840d2e901f 100644 --- a/modules/googleapis/0.0.0-20241220-5e258e33/MODULE.bazel +++ b/modules/googleapis/0.0.0-20241220-5e258e33/MODULE.bazel @@ -5,8 +5,15 @@ module( bazel_compatibility = [">=7.2.1"], ) +# Only needed for well-known protos. bazel_dep(name = "protobuf", version = "21.7", repo_name = "com_google_protobuf") + +# Only needed for proto_library. bazel_dep(name = "rules_proto", version = "5.3.0-21.7") switched_rules = use_extension("//private/extensions:switched_rules.bzl", "switched_rules") -use_repo(switched_rules, "com_google_googleapis_imports", "io_bazel_rules_go") +use_repo( + switched_rules, + "com_google_googleapis_imports", + "io_bazel_rules_go", +) diff --git a/modules/googleapis/0.0.0-20241220-5e258e33/overlay/private/extensions/constants.bzl b/modules/googleapis/0.0.0-20241220-5e258e33/overlay/private/extensions/constants.bzl index ab36f3009bc..13414d6aa1a 100644 --- a/modules/googleapis/0.0.0-20241220-5e258e33/overlay/private/extensions/constants.bzl +++ b/modules/googleapis/0.0.0-20241220-5e258e33/overlay/private/extensions/constants.bzl @@ -1,5 +1,5 @@ # Maps rules used by googleapis to if the rule is registered by the googleapis- -# module or to None if the rule is not supported yet. +# module or to None if the rule is not supported yet (some may never be). RULE_TO_FLAVOR = { "cc_gapic_library": None, "cc_grpc_library": None, diff --git a/modules/googleapis/0.0.0-20241220-5e258e33/overlay/private/extensions/switched_rules.bzl b/modules/googleapis/0.0.0-20241220-5e258e33/overlay/private/extensions/switched_rules.bzl index 2b287649506..391b6d32b62 100644 --- a/modules/googleapis/0.0.0-20241220-5e258e33/overlay/private/extensions/switched_rules.bzl +++ b/modules/googleapis/0.0.0-20241220-5e258e33/overlay/private/extensions/switched_rules.bzl @@ -44,6 +44,8 @@ _imports = repository_rule( }, ) +# This hack is needed due to direct references to @io_bazel_rules_go//proto:go_grpc in build files. +# Create an alias repo that resembles rules_go and forwards the go_grpc target to the actual target. def _io_bazel_rules_go_grpc_forwarder_impl(repo_ctx): content = "" if repo_ctx.attr.go_grpc_label: diff --git a/modules/googleapis/0.0.0-20241220-5e258e33/source.json b/modules/googleapis/0.0.0-20241220-5e258e33/source.json index 74f47a21397..6eed6b5ca0d 100644 --- a/modules/googleapis/0.0.0-20241220-5e258e33/source.json +++ b/modules/googleapis/0.0.0-20241220-5e258e33/source.json @@ -3,12 +3,12 @@ "strip_prefix": "googleapis-5e258e334154da04dcd0a567a61ac21518cac81b", "url": "https://github.com/googleapis/googleapis/archive/5e258e334154da04dcd0a567a61ac21518cac81b.tar.gz", "overlay": { - "MODULE.bazel": "sha256-p6zH/gAEnFto82U3NsmKX96nkCRe3slSZIr+NF1XZns=", + "MODULE.bazel": "sha256-/97gfXIGhSSjv7u/d+olSG9KWHwPsG7H8kj7NWXXqvE=", "extensions.bzl": "sha256-jj4EKrYrYsALa4wi11LYl7yULEWhIDr3HyKNnL6LFUE=", "private/extensions/BUILD.bazel": "sha256-47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=", - "private/extensions/constants.bzl": "sha256-CtBb2ekQdEatYN0pd6l0Aakn8zRN6Ty2CAgzohNx4KI=", + "private/extensions/constants.bzl": "sha256-N3+45VEQ9zVopqZw5BwDstYukv9pILF29K4Mu9zdpH8=", "private/extensions/fail_macro.bzl": "sha256-Ux6k9i7qKn7Y0gT1LFnHZiTGuPid7m1p3PncsnK8/iU=", - "private/extensions/switched_rules.bzl": "sha256-LkAQ/CEVSLYhHb0k1Ym4uBRC0yf6NQugxPZjPZteXMg=", + "private/extensions/switched_rules.bzl": "sha256-v8KqUuRupCid/jMiny6J/qYgbP2uRORrnC9rIWOwCTE=", "tests/bcr/.bazelrc": "sha256-hFZT+gits3VtXcUkKuh3NCEC9FgBNGuNxaOVCuOiFPk=", "tests/bcr/BUILD.bazel": "sha256-V70eP/KkZPjN+Zu//fkuZmvg0IhUvzSMR2Iis3whacc=", "tests/bcr/MODULE.bazel": "sha256-4s8xj9npqDzhJXi6BfQYDLhDoXwZ9cdFD4khXRvqWzs=",