2021-06-30 19:22:09 +00:00
|
|
|
load("@prysm//tools/go:def.bzl", "go_library", "go_test")
|
2018-07-13 16:47:57 +00:00
|
|
|
|
|
|
|
go_library(
|
|
|
|
name = "go_default_library",
|
2018-10-09 05:58:54 +00:00
|
|
|
srcs = ["service_registry.go"],
|
2021-09-17 19:20:50 +00:00
|
|
|
importpath = "github.com/prysmaticlabs/prysm/runtime",
|
2018-07-13 16:47:57 +00:00
|
|
|
visibility = ["//visibility:public"],
|
2018-10-09 05:58:54 +00:00
|
|
|
deps = ["@com_github_sirupsen_logrus//:go_default_library"],
|
2018-07-13 16:47:57 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
go_test(
|
|
|
|
name = "go_default_test",
|
2018-10-09 05:58:54 +00:00
|
|
|
srcs = ["service_registry_test.go"],
|
2018-07-13 16:47:57 +00:00
|
|
|
embed = [":go_default_library"],
|
2020-08-25 15:23:06 +00:00
|
|
|
deps = [
|
2021-09-23 18:53:46 +00:00
|
|
|
"//testing/assert:go_default_library",
|
|
|
|
"//testing/require:go_default_library",
|
2020-08-25 15:23:06 +00:00
|
|
|
],
|
2018-07-13 16:47:57 +00:00
|
|
|
)
|
2021-06-01 15:44:24 +00:00
|
|
|
|
|
|
|
genrule(
|
|
|
|
name = "version_file",
|
|
|
|
srcs = [],
|
|
|
|
outs = ["version.txt"],
|
|
|
|
cmd = "cat bazel-out/stable-status.txt | grep STABLE_GIT_TAG | cut -d' ' -f2 | tr -d v > $@",
|
|
|
|
stamp = True,
|
|
|
|
tags = ["local"],
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
)
|