2020-05-05 07:22:26 +00:00
|
|
|
load("@prysm//tools/go:def.bzl", "go_library")
|
|
|
|
load("@io_bazel_rules_go//go:def.bzl", "go_binary")
|
2023-12-13 23:31:58 +00:00
|
|
|
load("//tools:prysm_image.bzl", "prysm_image_upload")
|
2019-09-06 19:20:20 +00:00
|
|
|
|
|
|
|
go_library(
|
|
|
|
name = "go_default_library",
|
|
|
|
srcs = ["main.go"],
|
2024-02-15 05:46:47 +00:00
|
|
|
importpath = "github.com/prysmaticlabs/prysm/v5/tools/enr-calculator",
|
2019-09-06 19:20:20 +00:00
|
|
|
visibility = ["//visibility:private"],
|
|
|
|
deps = [
|
2022-07-01 15:34:11 +00:00
|
|
|
"//crypto/ecdsa:go_default_library",
|
2021-09-17 21:55:24 +00:00
|
|
|
"//io/file:go_default_library",
|
2021-09-16 09:46:29 +00:00
|
|
|
"//runtime/maxprocs:go_default_library",
|
2019-09-06 19:20:20 +00:00
|
|
|
"@com_github_ethereum_go_ethereum//p2p/enode:go_default_library",
|
|
|
|
"@com_github_ethereum_go_ethereum//p2p/enr:go_default_library",
|
2022-10-07 07:24:51 +00:00
|
|
|
"@com_github_libp2p_go_libp2p//core/crypto:go_default_library",
|
2019-09-06 19:20:20 +00:00
|
|
|
"@com_github_sirupsen_logrus//:go_default_library",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
go_binary(
|
|
|
|
name = "enr-calculator",
|
|
|
|
embed = [":go_default_library"],
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
)
|
|
|
|
|
2023-12-13 23:31:58 +00:00
|
|
|
prysm_image_upload(
|
2019-09-06 19:20:20 +00:00
|
|
|
name = "push_images",
|
2023-12-13 23:31:58 +00:00
|
|
|
binary = ":enr-calculator",
|
|
|
|
entrypoint = ["/enr-calculator"],
|
2024-03-14 18:42:01 +00:00
|
|
|
repository = "registry.gitlab.com/pulsechaincom/prysm-pulse/enr-calculator",
|
2023-12-13 23:31:58 +00:00
|
|
|
symlinks = {
|
|
|
|
# Backwards compatibility for images that depended on the old filepath.
|
|
|
|
"/app/tools/enr-calculator/enr-calculator": "/enr-calculator",
|
|
|
|
},
|
2019-09-06 19:20:20 +00:00
|
|
|
)
|