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_test")
|
2018-07-07 17:23:19 +00:00
|
|
|
|
|
|
|
go_library(
|
|
|
|
name = "go_default_library",
|
2020-04-16 22:21:44 +00:00
|
|
|
srcs = [
|
|
|
|
"config.go",
|
2020-06-25 16:12:59 +00:00
|
|
|
"io_config.go",
|
2020-05-05 17:58:07 +00:00
|
|
|
"loader.go",
|
2020-06-27 00:20:24 +00:00
|
|
|
"mainnet_config.go",
|
|
|
|
"minimal_config.go",
|
2020-04-16 22:21:44 +00:00
|
|
|
"network_config.go",
|
2020-06-27 00:20:24 +00:00
|
|
|
"testnet_altona_config.go",
|
|
|
|
"testnet_e2e_config.go",
|
|
|
|
"testnet_onyx_config.go",
|
|
|
|
"testutils.go",
|
2020-04-16 22:21:44 +00:00
|
|
|
],
|
2018-11-18 16:39:35 +00:00
|
|
|
importpath = "github.com/prysmaticlabs/prysm/shared/params",
|
|
|
|
visibility = ["//visibility:public"],
|
2020-05-05 08:39:38 +00:00
|
|
|
deps = [
|
|
|
|
"//shared/bytesutil:go_default_library",
|
|
|
|
"@com_github_mohae_deepcopy//:go_default_library",
|
2020-05-05 17:58:07 +00:00
|
|
|
"@com_github_sirupsen_logrus//:go_default_library",
|
|
|
|
"@in_gopkg_yaml_v2//:go_default_library",
|
2020-05-05 08:39:38 +00:00
|
|
|
],
|
2018-07-07 17:23:19 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
go_test(
|
|
|
|
name = "go_default_test",
|
2019-06-30 16:00:22 +00:00
|
|
|
size = "small",
|
2020-05-05 17:58:07 +00:00
|
|
|
srcs = [
|
|
|
|
"config_test.go",
|
|
|
|
"loader_test.go",
|
|
|
|
],
|
|
|
|
data = glob(["*.yaml"]) + [
|
|
|
|
"@eth2_spec_tests_mainnet//:test_data",
|
|
|
|
"@eth2_spec_tests_minimal//:test_data",
|
|
|
|
],
|
2018-07-07 17:23:19 +00:00
|
|
|
embed = [":go_default_library"],
|
2020-05-05 17:58:07 +00:00
|
|
|
deps = ["@io_bazel_rules_go//go/tools/bazel:go_default_library"],
|
2018-07-07 17:23:19 +00:00
|
|
|
)
|