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-09-28 10:24:16 -05:00
|
|
|
load("//tools:prysm_image.bzl", "prysm_image_upload")
|
2021-03-02 13:36:03 -06:00
|
|
|
|
|
|
|
go_library(
|
|
|
|
name = "go_default_library",
|
|
|
|
srcs = [
|
|
|
|
"log.go",
|
|
|
|
"main.go",
|
|
|
|
"usage.go",
|
|
|
|
],
|
2023-03-17 11:52:56 -07:00
|
|
|
importpath = "github.com/prysmaticlabs/prysm/v4/cmd/beacon-chain",
|
2021-03-02 13:36:03 -06:00
|
|
|
visibility = ["//beacon-chain:__subpackages__"],
|
|
|
|
deps = [
|
2022-06-01 08:12:15 -07:00
|
|
|
"//beacon-chain/builder:go_default_library",
|
2021-03-02 13:36:03 -06:00
|
|
|
"//beacon-chain/node:go_default_library",
|
2021-09-21 13:11:16 -05:00
|
|
|
"//cmd:go_default_library",
|
2021-10-18 12:48:05 -05:00
|
|
|
"//cmd/beacon-chain/blockchain:go_default_library",
|
2021-03-03 11:05:37 -06:00
|
|
|
"//cmd/beacon-chain/db:go_default_library",
|
2022-08-01 07:43:47 -07:00
|
|
|
"//cmd/beacon-chain/execution:go_default_library",
|
2021-03-02 13:36:03 -06:00
|
|
|
"//cmd/beacon-chain/flags:go_default_library",
|
2022-06-24 23:54:08 +08:00
|
|
|
"//cmd/beacon-chain/jwt:go_default_library",
|
2023-11-21 12:44:38 -06:00
|
|
|
"//cmd/beacon-chain/storage:go_default_library",
|
2022-03-28 16:01:55 -05:00
|
|
|
"//cmd/beacon-chain/sync/checkpoint:go_default_library",
|
2022-03-30 17:23:34 -05:00
|
|
|
"//cmd/beacon-chain/sync/genesis:go_default_library",
|
2021-09-14 18:18:39 -07:00
|
|
|
"//config/features:go_default_library",
|
2021-09-17 16:55:24 -05:00
|
|
|
"//io/file:go_default_library",
|
|
|
|
"//io/logs:go_default_library",
|
2021-09-14 15:59:51 -05:00
|
|
|
"//monitoring/journald:go_default_library",
|
2021-09-16 04:46:29 -05:00
|
|
|
"//runtime/debug:go_default_library",
|
2022-05-20 16:12:52 +08:00
|
|
|
"//runtime/fdlimits:go_default_library",
|
2022-07-27 19:20:54 +02:00
|
|
|
"//runtime/logging/logrus-prefixed-formatter:go_default_library",
|
2021-09-16 04:46:29 -05:00
|
|
|
"//runtime/maxprocs:go_default_library",
|
|
|
|
"//runtime/tos:go_default_library",
|
|
|
|
"//runtime/version:go_default_library",
|
2021-03-02 13:36:03 -06:00
|
|
|
"@com_github_ethereum_go_ethereum//log:go_default_library",
|
|
|
|
"@com_github_ipfs_go_log_v2//:go_default_library",
|
|
|
|
"@com_github_joonix_log//:go_default_library",
|
|
|
|
"@com_github_sirupsen_logrus//:go_default_library",
|
|
|
|
"@com_github_urfave_cli_v2//:go_default_library",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
go_binary(
|
|
|
|
name = "beacon-chain",
|
|
|
|
embed = [":go_default_library"],
|
2023-11-08 07:33:26 -06:00
|
|
|
pgoprofile = select({
|
|
|
|
"//:pgo_enabled": "pprof.beacon-chain.samples.cpu.pb.gz",
|
|
|
|
"//conditions:default": None,
|
|
|
|
}),
|
2021-03-02 13:36:03 -06:00
|
|
|
visibility = [
|
|
|
|
"//beacon-chain:__subpackages__",
|
2021-09-15 09:42:05 -05:00
|
|
|
"//testing/endtoend:__pkg__",
|
2021-03-02 13:36:03 -06:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
go_test(
|
|
|
|
name = "go_default_test",
|
|
|
|
size = "small",
|
|
|
|
srcs = ["usage_test.go"],
|
|
|
|
embed = [":go_default_library"],
|
|
|
|
visibility = ["//beacon-chain:__pkg__"],
|
|
|
|
deps = [
|
2021-09-14 18:18:39 -07:00
|
|
|
"//config/features:go_default_library",
|
2021-03-02 13:36:03 -06:00
|
|
|
"@com_github_urfave_cli_v2//:go_default_library",
|
|
|
|
],
|
|
|
|
)
|
2023-09-28 10:24:16 -05:00
|
|
|
|
|
|
|
prysm_image_upload(
|
2023-12-13 17:31:58 -06:00
|
|
|
name = "push_images",
|
2023-09-28 10:24:16 -05:00
|
|
|
binary = ":beacon-chain",
|
|
|
|
entrypoint = ["/beacon-chain"],
|
2023-12-13 17:31:58 -06:00
|
|
|
repository = "gcr.io/prysmaticlabs/prysm/beacon-chain",
|
2023-09-28 10:24:16 -05:00
|
|
|
symlinks = {
|
2023-12-13 17:31:58 -06:00
|
|
|
# Backwards compatibility for images that depended on the old filepath.
|
2023-09-28 10:24:16 -05:00
|
|
|
"/app/cmd/beacon-chain/beacon-chain": "/beacon-chain",
|
|
|
|
},
|
2023-09-28 12:49:26 -05:00
|
|
|
tags = ["manual"],
|
2023-09-28 10:24:16 -05:00
|
|
|
)
|