2021-06-30 14:22:09 -05:00
|
|
|
load("@prysm//tools/go:def.bzl", "go_library", "go_test")
|
2018-07-13 11:47:57 -05:00
|
|
|
|
|
|
|
go_library(
|
|
|
|
name = "go_default_library",
|
2018-10-09 00:58:54 -05:00
|
|
|
srcs = ["service_registry.go"],
|
2023-03-17 11:52:56 -07:00
|
|
|
importpath = "github.com/prysmaticlabs/prysm/v4/runtime",
|
2018-07-13 11:47:57 -05:00
|
|
|
visibility = ["//visibility:public"],
|
2018-10-09 00:58:54 -05:00
|
|
|
deps = ["@com_github_sirupsen_logrus//:go_default_library"],
|
2018-07-13 11:47:57 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
go_test(
|
|
|
|
name = "go_default_test",
|
2018-10-09 00:58:54 -05:00
|
|
|
srcs = ["service_registry_test.go"],
|
2018-07-13 11:47:57 -05:00
|
|
|
embed = [":go_default_library"],
|
2020-08-25 18:23:06 +03:00
|
|
|
deps = [
|
2021-09-23 13:53:46 -05:00
|
|
|
"//testing/assert:go_default_library",
|
|
|
|
"//testing/require:go_default_library",
|
2020-08-25 18:23:06 +03:00
|
|
|
],
|
2018-07-13 11:47:57 -05:00
|
|
|
)
|
2021-06-02 01:44:24 +10: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"],
|
|
|
|
)
|