github.com/bazelbuild/bazel-gazelle@v0.36.1-0.20240520142334-61b277ba6fed/language/go/testdata/proto_package_mode_extras/BUILD.want (about) 1 load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") 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 = "bar_proto", 7 srcs = [ 8 "bar1.proto", 9 "bar2.proto", 10 ], 11 _gazelle_imports = [], 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_extras/bar1.proto", 23 ], 24 ) 25 26 go_proto_library( 27 name = "bar_go_proto", 28 _gazelle_imports = [], 29 importpath = "example.com/repo/proto_package_mode_extras/bar", 30 proto = ":bar_proto", 31 ) 32 33 go_proto_library( 34 name = "foo_go_proto", 35 _gazelle_imports = [ 36 "google/protobuf/any.proto", 37 "proto_package_mode_extras/bar1.proto", 38 ], 39 importpath = "example.com/repo/proto_package_mode_extras", 40 proto = ":foo_proto", 41 ) 42 43 go_library( 44 name = "proto_package_mode_extras", 45 _gazelle_imports = [], 46 embed = [":foo_go_proto"], 47 importpath = "example.com/repo/proto_package_mode_extras", 48 ) 49 50 go_test( 51 name = "proto_package_mode_extras_test", 52 srcs = ["foo_test.go"], 53 _gazelle_imports = [], 54 embed = [":proto_package_mode_extras"], 55 )