aboutsummaryrefslogtreecommitdiff
path: root/examples/bzlmod/py_proto_library/example.com/proto/BUILD.bazel
blob: fa20f2ce947ba102a8a457e7f5dc6ab8e6d80846 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
load("@rules_proto//proto:defs.bzl", "proto_library")
load("@rules_python//python:proto.bzl", "py_proto_library")

py_proto_library(
    name = "pricetag_proto_py_pb2",
    visibility = ["//visibility:public"],
    deps = [":pricetag_proto"],
)

proto_library(
    name = "pricetag_proto",
    srcs = ["pricetag.proto"],
    # https://bazel.build/reference/be/protocol-buffer#proto_library.strip_import_prefix
    strip_import_prefix = "/py_proto_library/example.com",
    visibility = ["//visibility:public"],
    deps = ["@com_google_protobuf//:any_proto"],
)