github.com/bazelbuild/bazel-gazelle@v0.36.1-0.20240520142334-61b277ba6fed/language/go/testdata/protos_gogo/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 = "protos_gogo_proto", 7 srcs = ["foo.proto"], 8 _gazelle_imports = [ 9 "google/protobuf/any.proto", 10 "protos/sub/sub.proto", 11 ], 12 visibility = ["//visibility:public"], 13 ) 14 15 go_proto_library( 16 name = "protos_gogo_go_proto", 17 _gazelle_imports = [ 18 "google/protobuf/any.proto", 19 "protos/sub/sub.proto", 20 ], 21 compilers = ["@io_bazel_rules_go//proto:gogofast_proto"], 22 importpath = "example.com/repo/protos_gogo", 23 proto = ":protos_gogo_proto", 24 visibility = ["//visibility:public"], 25 ) 26 27 go_library( 28 name = "protos_gogo", 29 srcs = ["extra.go"], 30 _gazelle_imports = [], 31 embed = [":protos_gogo_go_proto"], 32 importpath = "example.com/repo/protos_gogo", 33 visibility = ["//visibility:public"], 34 )