github.com/bazelbuild/bazel-gazelle@v0.36.1-0.20240520142334-61b277ba6fed/language/go/testdata/service/BUILD.want (about) 1 load("@io_bazel_rules_go//go:def.bzl", "go_library") 2 load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") 3 load("@rules_proto//proto:defs.bzl", "proto_library") 4 5 proto_library( 6 name = "service_proto", 7 srcs = ["service.proto"], 8 _gazelle_imports = [ 9 "google/protobuf/any.proto", 10 "service/sub/sub.proto", 11 ], 12 visibility = ["//visibility:public"], 13 ) 14 15 go_proto_library( 16 name = "service_go_proto", 17 _gazelle_imports = [ 18 "google/protobuf/any.proto", 19 "service/sub/sub.proto", 20 ], 21 compilers = ["@io_bazel_rules_go//proto:go_grpc"], 22 importpath = "example.com/repo/service", 23 proto = ":service_proto", 24 visibility = ["//visibility:public"], 25 ) 26 27 go_library( 28 name = "service", 29 srcs = ["extra.go"], 30 _gazelle_imports = [], 31 embed = [":service_go_proto"], 32 importpath = "example.com/repo/service", 33 visibility = ["//visibility:public"], 34 )