github.com/munnerz/test-infra@v0.0.0-20190108210205-ce3d181dc989/testgrid/cmd/updater/BUILD.bazel (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 = "k8s.io/test-infra/testgrid/cmd/updater", 7 visibility = ["//visibility:private"], 8 deps = [ 9 "//testgrid:config", 10 "//testgrid:state", 11 "//testgrid/util/gcs:go_default_library", 12 "//vendor/cloud.google.com/go/storage:go_default_library", 13 "//vendor/github.com/golang/protobuf/proto:go_default_library", 14 "//vendor/google.golang.org/api/iterator:go_default_library", 15 "//vendor/vbom.ml/util/sortorder:go_default_library", 16 ], 17 ) 18 19 go_binary( 20 name = "updater", 21 embed = [":go_default_library"], 22 pure = "on", 23 tags = ["automanaged"], 24 visibility = ["//visibility:public"], 25 ) 26 27 filegroup( 28 name = "package-srcs", 29 srcs = glob(["**"]), 30 tags = ["automanaged"], 31 visibility = ["//visibility:private"], 32 ) 33 34 filegroup( 35 name = "all-srcs", 36 srcs = [":package-srcs"], 37 tags = ["automanaged"], 38 visibility = ["//visibility:public"], 39 ) 40 41 go_test( 42 name = "go_default_test", 43 srcs = ["main_test.go"], 44 embed = [":go_default_library"], 45 deps = [ 46 "//testgrid:state", 47 "//vendor/github.com/golang/protobuf/proto:go_default_library", 48 ], 49 )