2021-06-30 14:22:09 -05:00
|
|
|
load("@prysm//tools/go:def.bzl", "go_library", "go_test")
|
|
|
|
load("@io_bazel_rules_go//go:def.bzl", "go_binary")
|
2023-12-13 17:31:58 -06:00
|
|
|
load("//tools:prysm_image.bzl", "prysm_image_upload")
|
2018-11-10 12:32:45 -05:00
|
|
|
|
|
|
|
go_library(
|
|
|
|
name = "go_default_library",
|
|
|
|
srcs = ["bootnode.go"],
|
2024-02-14 21:46:47 -08:00
|
|
|
importpath = "github.com/prysmaticlabs/prysm/v5/tools/bootnode",
|
2018-11-10 12:32:45 -05:00
|
|
|
visibility = ["//visibility:private"],
|
|
|
|
deps = [
|
2021-09-18 12:26:11 -05:00
|
|
|
"//async:go_default_library",
|
2021-09-27 11:19:20 -05:00
|
|
|
"//beacon-chain/core/signing:go_default_library",
|
2021-09-21 14:59:25 -05:00
|
|
|
"//config/params:go_default_library",
|
2022-07-01 23:34:11 +08:00
|
|
|
"//crypto/ecdsa:go_default_library",
|
2021-09-23 10:23:37 -05:00
|
|
|
"//encoding/bytesutil:go_default_library",
|
2021-09-17 16:55:24 -05:00
|
|
|
"//io/logs:go_default_library",
|
2021-09-16 12:12:27 -07:00
|
|
|
"//network:go_default_library",
|
2021-07-28 16:23:44 -05:00
|
|
|
"//proto/prysm/v1alpha1:go_default_library",
|
2021-09-16 04:46:29 -05:00
|
|
|
"//runtime/maxprocs:go_default_library",
|
|
|
|
"//runtime/version:go_default_library",
|
2020-10-20 12:05:48 +08:00
|
|
|
"@com_github_ethereum_go_ethereum//crypto:go_default_library",
|
2019-09-17 16:24:08 -07:00
|
|
|
"@com_github_ethereum_go_ethereum//log:go_default_library",
|
2019-09-07 00:50:20 +05:30
|
|
|
"@com_github_ethereum_go_ethereum//p2p/discover:go_default_library",
|
|
|
|
"@com_github_ethereum_go_ethereum//p2p/enode:go_default_library",
|
|
|
|
"@com_github_ethereum_go_ethereum//p2p/enr:go_default_library",
|
2022-10-07 02:24:51 -05:00
|
|
|
"@com_github_libp2p_go_libp2p//core/crypto:go_default_library",
|
2019-09-07 00:50:20 +05:30
|
|
|
"@com_github_pkg_errors//:go_default_library",
|
2020-04-20 14:02:09 -05:00
|
|
|
"@com_github_prometheus_client_golang//prometheus:go_default_library",
|
|
|
|
"@com_github_prometheus_client_golang//prometheus/promauto:go_default_library",
|
2020-04-14 13:27:03 -07:00
|
|
|
"@com_github_prysmaticlabs_go_bitfield//:go_default_library",
|
2019-08-31 20:05:36 -07:00
|
|
|
"@com_github_sirupsen_logrus//:go_default_library",
|
2018-11-10 12:32:45 -05:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
go_binary(
|
|
|
|
name = "bootnode",
|
|
|
|
embed = [":go_default_library"],
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
)
|
2019-07-20 00:55:09 -04:00
|
|
|
|
2019-08-19 01:24:20 +05:30
|
|
|
go_test(
|
|
|
|
name = "go_default_test",
|
|
|
|
srcs = ["bootnode_test.go"],
|
|
|
|
embed = [":go_default_library"],
|
2019-09-07 00:50:20 +05:30
|
|
|
flaky = True,
|
2019-08-19 01:24:20 +05:30
|
|
|
deps = [
|
2022-07-01 23:34:11 +08:00
|
|
|
"//crypto/ecdsa:go_default_library",
|
2021-09-16 12:12:27 -07:00
|
|
|
"//network:go_default_library",
|
2021-09-16 04:46:29 -05:00
|
|
|
"//runtime/maxprocs:go_default_library",
|
2021-09-23 13:53:46 -05:00
|
|
|
"//testing/assert:go_default_library",
|
|
|
|
"//testing/require:go_default_library",
|
2019-09-07 00:50:20 +05:30
|
|
|
"@com_github_ethereum_go_ethereum//p2p/discover:go_default_library",
|
|
|
|
"@com_github_ethereum_go_ethereum//p2p/enode:go_default_library",
|
2022-10-07 02:24:51 -05:00
|
|
|
"@com_github_libp2p_go_libp2p//core/crypto:go_default_library",
|
2020-08-25 18:23:06 +03:00
|
|
|
"@com_github_sirupsen_logrus//:go_default_library",
|
2019-08-19 01:24:20 +05:30
|
|
|
],
|
|
|
|
)
|
2023-12-13 17:31:58 -06:00
|
|
|
|
|
|
|
prysm_image_upload(
|
|
|
|
name = "push_images",
|
|
|
|
binary = ":bootnode",
|
|
|
|
entrypoint = ["/bootnode"],
|
|
|
|
repository = "gcr.io/prysmaticlabs/prysm/bootnode",
|
|
|
|
symlinks = {
|
|
|
|
# Backwards compatibility for images that depended on the old filepath.
|
|
|
|
"/app/tools/bootnode/bootnode": "/bootnode",
|
|
|
|
},
|
|
|
|
tags = ["manual"],
|
|
|
|
)
|