2020-12-07 20:36:43 +00:00
|
|
|
load("@io_bazel_rules_go//go:def.bzl", "go_test")
|
2020-05-05 07:22:26 +00:00
|
|
|
load("@prysm//tools/go:def.bzl", "go_library")
|
2020-01-08 18:16:17 +00:00
|
|
|
|
|
|
|
go_library(
|
|
|
|
name = "go_default_library",
|
2020-12-07 20:36:43 +00:00
|
|
|
srcs = [
|
|
|
|
"alias.go",
|
2021-01-11 20:03:28 +00:00
|
|
|
"log.go",
|
2021-01-15 21:35:21 +00:00
|
|
|
"migrate.go",
|
2020-12-07 20:36:43 +00:00
|
|
|
"restore.go",
|
|
|
|
],
|
2020-01-08 18:16:17 +00:00
|
|
|
importpath = "github.com/prysmaticlabs/prysm/validator/db",
|
2021-03-02 18:58:40 +00:00
|
|
|
visibility = [
|
|
|
|
"//cmd/validator:__subpackages__",
|
|
|
|
"//validator:__subpackages__",
|
|
|
|
],
|
2020-12-07 20:36:43 +00:00
|
|
|
deps = [
|
|
|
|
"//shared/cmd:go_default_library",
|
|
|
|
"//shared/fileutil:go_default_library",
|
|
|
|
"//shared/promptutil:go_default_library",
|
|
|
|
"//validator/db/iface:go_default_library",
|
|
|
|
"//validator/db/kv:go_default_library",
|
|
|
|
"@com_github_pkg_errors//:go_default_library",
|
|
|
|
"@com_github_sirupsen_logrus//:go_default_library",
|
|
|
|
"@com_github_urfave_cli_v2//:go_default_library",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
go_test(
|
|
|
|
name = "go_default_test",
|
2021-01-18 19:32:17 +00:00
|
|
|
srcs = [
|
|
|
|
"migrate_test.go",
|
|
|
|
"restore_test.go",
|
|
|
|
],
|
2020-12-07 20:36:43 +00:00
|
|
|
embed = [":go_default_library"],
|
|
|
|
deps = [
|
|
|
|
"//shared/cmd:go_default_library",
|
|
|
|
"//shared/params:go_default_library",
|
|
|
|
"//shared/testutil/assert:go_default_library",
|
|
|
|
"//shared/testutil/require:go_default_library",
|
|
|
|
"//validator/db/kv:go_default_library",
|
2021-01-18 19:32:17 +00:00
|
|
|
"//validator/db/testing:go_default_library",
|
2020-12-07 20:36:43 +00:00
|
|
|
"@com_github_sirupsen_logrus//hooks/test:go_default_library",
|
|
|
|
"@com_github_urfave_cli_v2//:go_default_library",
|
|
|
|
],
|
2020-01-08 18:16:17 +00:00
|
|
|
)
|