github.com/bazelbuild/bazel-gazelle@v0.36.1-0.20240520142334-61b277ba6fed/language/go/testdata/importmap/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 = "hello_proto", 7 srcs = ["hello.proto"], 8 _gazelle_imports = [], 9 visibility = ["//visibility:public"], 10 ) 11 12 go_proto_library( 13 name = "hello_go_proto", 14 _gazelle_imports = [], 15 importmap = "never/gonna/give/you/up", 16 importpath = "example.com/repo/importmap", 17 proto = ":hello_proto", 18 visibility = ["//visibility:public"], 19 ) 20 21 go_library( 22 name = "importmap", 23 srcs = ["extra.go"], 24 _gazelle_imports = [], 25 embed = [":hello_go_proto"], 26 importmap = "never/gonna/give/you/up", 27 importpath = "example.com/repo/importmap", 28 visibility = ["//visibility:public"], 29 ) 30 31 go_test( 32 name = "importmap_test", 33 srcs = ["extra_test.go"], 34 _gazelle_imports = [], 35 embed = [":importmap"], 36 )