github.com/abayer/test-infra@v0.0.5/velodrome/token-counter/BUILD.bazel (about) 1 package(default_visibility = ["//visibility:public"]) 2 3 load( 4 "@io_bazel_rules_go//go:def.bzl", 5 "go_binary", 6 "go_library", 7 ) 8 9 go_binary( 10 name = "token-counter", 11 embed = [":go_default_library"], 12 pure = "on", 13 ) 14 15 go_library( 16 name = "go_default_library", 17 srcs = [ 18 "influx.go", 19 "token-counter.go", 20 ], 21 importpath = "k8s.io/test-infra/velodrome/token-counter", 22 deps = [ 23 "//vendor/github.com/golang/glog:go_default_library", 24 "//vendor/github.com/google/go-github/github:go_default_library", 25 "//vendor/github.com/influxdata/influxdb/client/v2:go_default_library", 26 "//vendor/github.com/spf13/cobra:go_default_library", 27 "//vendor/golang.org/x/oauth2:go_default_library", 28 ], 29 ) 30 31 filegroup( 32 name = "configs", 33 srcs = glob(["*.yaml"]), 34 ) 35 36 filegroup( 37 name = "package-srcs", 38 srcs = glob(["**"]), 39 tags = ["automanaged"], 40 visibility = ["//visibility:private"], 41 ) 42 43 filegroup( 44 name = "all-srcs", 45 srcs = [":package-srcs"], 46 tags = ["automanaged"], 47 )