github.com/stackb/rules_proto@v0.0.0-20240221195024-5428336c51f1/example/golden/testdata/proto_repository/proto/foo/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 = "app_proto",
     7      srcs = ["app.proto"],
     8      visibility = ["//visibility:public"],
     9      deps = [
    10          "@googleapis//google/api:annotations_proto",
    11          "@googleapis//google/api:field_behavior_proto",
    12      ],
    13  )
    14  
    15  proto_compile(
    16      name = "app_go_compile",
    17      output_mappings = [
    18          "app.pb.go=github.com/example/app/app.pb.go",
    19          "app_grpc.pb.go=github.com/example/app/app_grpc.pb.go",
    20      ],
    21      outputs = [
    22          "app.pb.go",
    23          "app_grpc.pb.go",
    24      ],
    25      plugins = [
    26          "@build_stack_rules_proto//plugin/golang/protobuf:protoc-gen-go",
    27          "@build_stack_rules_proto//plugin/grpc/grpc-go:protoc-gen-go-grpc",
    28      ],
    29      proto = "app_proto",
    30      visibility = ["//visibility:public"],
    31  )
    32  
    33  proto_go_library(
    34      name = "app_go_proto",
    35      srcs = [
    36          "app.pb.go",
    37          "app_grpc.pb.go",
    38      ],
    39      importpath = "github.com/example/app",
    40      visibility = ["//visibility:public"],
    41      deps = [
    42          "@googleapis//google/api:annotations_go_proto",
    43          "@org_golang_google_grpc//:go_default_library",
    44          "@org_golang_google_grpc//codes",
    45          "@org_golang_google_grpc//status",
    46          "@org_golang_google_protobuf//reflect/protoreflect",
    47          "@org_golang_google_protobuf//runtime/protoimpl",
    48      ],
    49  )