github.com/bazelbuild/bazel-gazelle@v0.36.1-0.20240520142334-61b277ba6fed/language/go/gen_std_package_list/BUILD.bazel (about) 1 load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") 2 3 go_binary( 4 name = "gen_std_package_list", 5 embed = [":gen_std_package_list_lib"], 6 # TODO(bazelbuild/rules_go#2302): needs to be public in order to use as 7 # a default value in std_package_list, which is defined with go_rule. 8 # std_package_list should not be defined with go_rule. 9 visibility = ["//visibility:public"], 10 ) 11 12 go_library( 13 name = "gen_std_package_list_lib", 14 srcs = ["gen_std_package_list.go"], 15 importpath = "github.com/bazelbuild/bazel-gazelle/language/go/gen_std_package_list", 16 visibility = ["//visibility:private"], 17 ) 18 19 filegroup( 20 name = "all_files", 21 testonly = True, 22 srcs = [ 23 "BUILD.bazel", 24 "gen_std_package_list.go", 25 ], 26 visibility = ["//visibility:public"], 27 )