github.com/prysmaticlabs/prysm@v1.4.4/shared/BUILD.bazel (about) 1 load("@prysm//tools/go:def.bzl", "go_library", "go_test") 2 3 go_library( 4 name = "go_default_library", 5 srcs = ["service_registry.go"], 6 importpath = "github.com/prysmaticlabs/prysm/shared", 7 visibility = ["//visibility:public"], 8 deps = ["@com_github_sirupsen_logrus//:go_default_library"], 9 ) 10 11 go_test( 12 name = "go_default_test", 13 size = "small", 14 srcs = ["service_registry_test.go"], 15 embed = [":go_default_library"], 16 deps = [ 17 "//shared/testutil/assert:go_default_library", 18 "//shared/testutil/require:go_default_library", 19 ], 20 ) 21 22 genrule( 23 name = "version_file", 24 srcs = [], 25 outs = ["version.txt"], 26 cmd = "cat bazel-out/stable-status.txt | grep STABLE_GIT_TAG | cut -d' ' -f2 | tr -d v > $@", 27 stamp = True, 28 tags = ["local"], 29 visibility = ["//visibility:public"], 30 )