github.com/bazelbuild/bazel-gazelle@v0.36.1-0.20240520142334-61b277ba6fed/third_party/org_golang_x_tools/cmd/fiximports/BUILD.bazel.in (about) 1 load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library", "go_test") 2 3 go_library( 4 name = "go_default_library", 5 srcs = ["main.go"], 6 importpath = "golang.org/x/tools/cmd/fiximports", 7 visibility = ["//visibility:private"], 8 ) 9 10 go_binary( 11 name = "fiximports", 12 embed = [":go_default_library"], 13 visibility = ["//visibility:public"], 14 ) 15 16 go_test( 17 name = "go_default_test", 18 srcs = select({ 19 "@io_bazel_rules_go//go/platform:darwin": [ 20 "main_test.go", 21 ], 22 "@io_bazel_rules_go//go/platform:dragonfly": [ 23 "main_test.go", 24 ], 25 "@io_bazel_rules_go//go/platform:freebsd": [ 26 "main_test.go", 27 ], 28 "@io_bazel_rules_go//go/platform:linux": [ 29 "main_test.go", 30 ], 31 "@io_bazel_rules_go//go/platform:nacl": [ 32 "main_test.go", 33 ], 34 "@io_bazel_rules_go//go/platform:netbsd": [ 35 "main_test.go", 36 ], 37 "@io_bazel_rules_go//go/platform:openbsd": [ 38 "main_test.go", 39 ], 40 "@io_bazel_rules_go//go/platform:plan9": [ 41 "main_test.go", 42 ], 43 "@io_bazel_rules_go//go/platform:solaris": [ 44 "main_test.go", 45 ], 46 "@io_bazel_rules_go//go/platform:windows": [ 47 "main_test.go", 48 ], 49 "//conditions:default": [], 50 }), 51 embed = [":go_default_library"], 52 )