Skip to content

Commit

Permalink
Add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
fmeum committed Dec 25, 2024
1 parent f94e84d commit 58b5e5f
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
9 changes: 8 additions & 1 deletion modules/googleapis/0.0.0-20241220-5e258e33/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -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",
)
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Maps rules used by googleapis to <flavor> if the rule is registered by the googleapis-<flavor>
# 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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 3 additions & 3 deletions modules/googleapis/0.0.0-20241220-5e258e33/source.json
Original file line number Diff line number Diff line change
Expand Up @@ -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=",
Expand Down

0 comments on commit 58b5e5f

Please sign in to comment.