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