github.com/stackb/rules_proto@v0.0.0-20240221195024-5428336c51f1/example/golden/testdata/goembed/proto/bar/BUILD.out (about)

     1  load("@rules_proto//proto:defs.bzl", "proto_library")
     2  load("@build_stack_rules_proto//rules/go:proto_go_library.bzl", "proto_go_library")
     3  load("@build_stack_rules_proto//rules:proto_compile.bzl", "proto_compile")
     4  
     5  proto_library(
     6      name = "body_proto",
     7      srcs = ["body.proto"],
     8      visibility = ["//visibility:public"],
     9      deps = ["@com_google_protobuf//:struct_proto"],
    10  )
    11  
    12  proto_compile(
    13      name = "body_go_compile",
    14      output_mappings = ["body.pb.go=github.com/example/foo/body.pb.go"],
    15      outputs = ["body.pb.go"],
    16      plugins = ["@build_stack_rules_proto//plugin/golang/protobuf:protoc-gen-go"],
    17      proto = "body_proto",
    18  )
    19  
    20  proto_go_library(
    21      name = "body_go_proto",
    22      srcs = ["body.pb.go"],
    23      importpath = "github.com/example/foo",
    24      visibility = ["//visibility:public"],
    25      deps = [
    26          "@org_golang_google_protobuf//reflect/protoreflect",
    27          "@org_golang_google_protobuf//runtime/protoimpl",
    28          "@org_golang_google_protobuf//types/known/structpb",
    29      ],
    30  )