github.com/bazelbuild/bazel-gazelle@v0.36.1-0.20240520142334-61b277ba6fed/language/go/testdata/proto_package_mode/BUILD.want (about) 1 load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") 2 load("@rules_proto//proto:defs.bzl", "proto_library") 3 4 proto_library( 5 name = "bar_proto", 6 srcs = [ 7 "bar1.proto", 8 "bar2.proto", 9 ], 10 _gazelle_imports = [], 11 visibility = ["//visibility:public"], 12 ) 13 14 proto_library( 15 name = "foo_proto", 16 srcs = [ 17 "foo1.proto", 18 "foo2.proto", 19 ], 20 _gazelle_imports = [ 21 "google/protobuf/any.proto", 22 "proto_package_mode/bar1.proto", 23 ], 24 visibility = ["//visibility:public"], 25 ) 26 27 go_proto_library( 28 name = "bar_go_proto", 29 _gazelle_imports = [], 30 importpath = "example.com/repo/proto_package_mode/bar", 31 proto = ":bar_proto", 32 visibility = ["//visibility:public"], 33 ) 34 35 go_proto_library( 36 name = "foo_go_proto", 37 _gazelle_imports = [ 38 "google/protobuf/any.proto", 39 "proto_package_mode/bar1.proto", 40 ], 41 importpath = "example.com/repo/proto_package_mode", 42 proto = ":foo_proto", 43 visibility = ["//visibility:public"], 44 )