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