dep-protobuf/examples/examples_with_hyphen/MODULE.bazel
Sandy Zhang a4be867133 Loosen py_proto_library check to be on the import path instead of full directory (i.e. excluding external/module-name prefix).
The module name does not actually make it into the name used in python imports, so this should allow py_proto_library to work for modules with hyphens in their name (i.e. `bazel build @com_google_protobuf-examples//:addressbook_py_pb2`).

PiperOrigin-RevId: 733763224
2025-03-05 09:37:08 -08:00

13 lines
304 B
Text

"""Bazel module dependencies"""
module(
name = "com_google_protobuf-examples-with-hyphen",
version = "0.0.0",
compatibility_level = 1,
)
bazel_dep(name = "protobuf", version = "0.0.0", repo_name = "com_google_protobuf")
local_path_override(
module_name = "protobuf",
path = "..",
)