github.com/afking/bazel-gazelle@v0.0.0-20180301150245-c02bc0f529e8/internal/rules/testdata/repo/lib/BUILD.want (about) 1 load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") 2 3 go_library( 4 name = "go_default_library", 5 srcs = [ 6 "asm.h", 7 "asm.s", 8 "doc.go", 9 "lib.go", 10 ], 11 _gazelle_imports = [ 12 "archive/tar", 13 "bufio", 14 "example.com/repo/lib/internal/deep", 15 "lib.invalid/does/not/exist", 16 ], 17 importpath = "example.com/repo/lib", 18 visibility = ["//visibility:public"], 19 ) 20 21 go_test( 22 name = "go_default_test", 23 srcs = ["lib_test.go"], 24 _gazelle_imports = ["testing"], 25 embed = [":go_default_library"], 26 ) 27 28 go_test( 29 name = "go_default_xtest", 30 srcs = ["lib_external_test.go"], 31 _gazelle_imports = [ 32 "example.com/repo/lib", 33 "testing", 34 ], 35 )