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