2021-10-09 13:27:34 +00:00
|
|
|
load("@prysm//tools/go:def.bzl", "go_library", "go_test")
|
2019-01-10 04:19:33 +00:00
|
|
|
|
|
|
|
go_library(
|
|
|
|
name = "go_default_library",
|
2021-03-01 17:50:20 +00:00
|
|
|
srcs = [
|
2021-07-13 18:58:43 +00:00
|
|
|
"fork.go",
|
2021-03-01 17:50:20 +00:00
|
|
|
"metrics.go",
|
|
|
|
"version.go",
|
|
|
|
],
|
2021-09-16 09:46:29 +00:00
|
|
|
importpath = "github.com/prysmaticlabs/prysm/runtime/version",
|
2019-01-10 04:19:33 +00:00
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
x_defs = {
|
|
|
|
"gitCommit": "{STABLE_GIT_COMMIT}",
|
|
|
|
"buildDate": "{DATE}",
|
2021-04-30 20:37:38 +00:00
|
|
|
"buildDateUnix": "{DATE_UNIX}",
|
2020-06-18 19:59:47 +00:00
|
|
|
"gitTag": "{STABLE_GIT_TAG}",
|
2019-01-10 04:19:33 +00:00
|
|
|
},
|
2021-03-01 17:50:20 +00:00
|
|
|
deps = [
|
|
|
|
"@com_github_prometheus_client_golang//prometheus:go_default_library",
|
|
|
|
"@com_github_prometheus_client_golang//prometheus/promauto:go_default_library",
|
|
|
|
],
|
2019-01-10 04:19:33 +00:00
|
|
|
)
|
2021-10-09 13:27:34 +00:00
|
|
|
|
|
|
|
go_test(
|
|
|
|
name = "go_default_test",
|
|
|
|
srcs = ["fork_test.go"],
|
|
|
|
embed = [":go_default_library"],
|
|
|
|
)
|