github.com/bazelbuild/bazel-gazelle@v0.36.1-0.20240520142334-61b277ba6fed/third_party/org_golang_x_tools/cmd/getgo/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 = [ 6 "download.go", 7 "main.go", 8 "path.go", 9 "steps.go", 10 "system.go", 11 ] + select({ 12 "@io_bazel_rules_go//go/platform:darwin": [ 13 "system_unix.go", 14 ], 15 "@io_bazel_rules_go//go/platform:dragonfly": [ 16 "system_unix.go", 17 ], 18 "@io_bazel_rules_go//go/platform:freebsd": [ 19 "system_unix.go", 20 ], 21 "@io_bazel_rules_go//go/platform:linux": [ 22 "system_unix.go", 23 ], 24 "@io_bazel_rules_go//go/platform:nacl": [ 25 "system_unix.go", 26 ], 27 "@io_bazel_rules_go//go/platform:netbsd": [ 28 "system_unix.go", 29 ], 30 "@io_bazel_rules_go//go/platform:openbsd": [ 31 "system_unix.go", 32 ], 33 "@io_bazel_rules_go//go/platform:solaris": [ 34 "system_unix.go", 35 ], 36 "@io_bazel_rules_go//go/platform:windows": [ 37 "system_windows.go", 38 ], 39 "//conditions:default": [], 40 }), 41 importpath = "golang.org/x/tools/cmd/getgo", 42 visibility = ["//visibility:private"], 43 ) 44 45 go_binary( 46 name = "getgo", 47 embed = [":go_default_library"], 48 visibility = ["//visibility:public"], 49 ) 50 51 go_test( 52 name = "go_default_test", 53 srcs = [ 54 "download_test.go", 55 "main_test.go", 56 "path_test.go", 57 ], 58 embed = [":go_default_library"], 59 )