github.com/bazelbuild/bazel-gazelle@v0.36.1-0.20240520142334-61b277ba6fed/language/go/testdata/default_visibility/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 = "default_visibility_proto", 7 srcs = ["foo.proto"], 8 _gazelle_imports = [], 9 ) 10 11 go_proto_library( 12 name = "default_visibility_go_proto", 13 _gazelle_imports = [], 14 importpath = "example.com/repo/default_visibility", 15 proto = ":default_visibility_proto", 16 ) 17 18 go_library( 19 name = "default_visibility", 20 srcs = ["lib.go"], 21 _gazelle_imports = [], 22 embed = [":default_visibility_go_proto"], 23 importpath = "example.com/repo/default_visibility", 24 ) 25 26 go_test( 27 name = "default_visibility_test", 28 srcs = ["a_test.go"], 29 _gazelle_imports = [], 30 embed = [":default_visibility"], 31 )