github.com/bazelbuild/bazel-gazelle@v0.36.1-0.20240520142334-61b277ba6fed/cmd/generate_repo_config/BUILD.bazel (about) 1 load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library", "go_test") 2 3 go_library( 4 name = "generate_repo_config_lib", 5 srcs = ["generate_repo_config.go"], 6 importpath = "github.com/bazelbuild/bazel-gazelle/cmd/generate_repo_config", 7 visibility = ["//visibility:private"], 8 deps = [ 9 "//repo", 10 "//rule", 11 ], 12 ) 13 14 go_binary( 15 name = "generate_repo_config", 16 embed = [":generate_repo_config_lib"], 17 visibility = ["//visibility:public"], 18 ) 19 20 go_test( 21 name = "generate_repo_config_test", 22 srcs = ["generate_repo_config_test.go"], 23 embed = [":generate_repo_config_lib"], 24 deps = ["//testtools"], 25 ) 26 27 filegroup( 28 name = "all_files", 29 testonly = True, 30 srcs = [ 31 "BUILD.bazel", 32 "generate_repo_config.go", 33 "generate_repo_config_test.go", 34 ], 35 visibility = ["//visibility:public"], 36 )