github.com/bazelbuild/bazel-gazelle@v0.36.1-0.20240520142334-61b277ba6fed/language/bazel/visibility/BUILD.bazel (about) 1 load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") 2 3 go_library( 4 name = "visibility", 5 srcs = [ 6 "config.go", 7 "lang.go", 8 "resolve.go", 9 ], 10 importpath = "github.com/bazelbuild/bazel-gazelle/language/bazel/visibility", 11 visibility = ["//visibility:public"], 12 deps = [ 13 "//config", 14 "//label", 15 "//language", 16 "//repo", 17 "//resolve", 18 "//rule", 19 ], 20 ) 21 22 alias( 23 name = "go_default_library", 24 actual = ":visibility", 25 visibility = ["//visibility:public"], 26 ) 27 28 go_test( 29 name = "visibility_test", 30 srcs = ["lang_test.go"], 31 deps = [ 32 ":visibility", 33 "//config", 34 "//label", 35 "//language", 36 "//rule", 37 ], 38 ) 39 40 filegroup( 41 name = "all_files", 42 testonly = True, 43 srcs = [ 44 "BUILD.bazel", 45 "config.go", 46 "lang.go", 47 "lang_test.go", 48 "resolve.go", 49 ], 50 visibility = ["//visibility:public"], 51 )