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-19 16:31:50 +00:00
|
|
|
|
|
|
|
go_library(
|
|
|
|
name = "go_default_library",
|
|
|
|
srcs = [
|
|
|
|
"customflags.go",
|
2019-02-19 06:17:27 +00:00
|
|
|
"defaults.go",
|
2018-07-19 16:31:50 +00:00
|
|
|
"flags.go",
|
2020-01-05 04:32:09 +00:00
|
|
|
"helpers.go",
|
2020-05-12 15:01:02 +00:00
|
|
|
"password_reader.go",
|
|
|
|
"password_reader_mock.go",
|
2020-03-19 21:46:44 +00:00
|
|
|
"wrap_flags.go",
|
2018-07-19 16:31:50 +00:00
|
|
|
],
|
2018-07-20 21:31:26 +00:00
|
|
|
importpath = "github.com/prysmaticlabs/prysm/shared/cmd",
|
2018-07-19 16:31:50 +00:00
|
|
|
visibility = ["//visibility:public"],
|
2020-01-05 04:32:09 +00:00
|
|
|
deps = [
|
2020-05-12 15:01:02 +00:00
|
|
|
"@com_github_golang_mock//gomock:go_default_library",
|
2020-05-05 20:13:18 +00:00
|
|
|
"@com_github_pkg_errors//:go_default_library",
|
2020-01-05 04:32:09 +00:00
|
|
|
"@com_github_sirupsen_logrus//:go_default_library",
|
2020-03-19 21:46:44 +00:00
|
|
|
"@in_gopkg_urfave_cli_v2//:go_default_library",
|
|
|
|
"@in_gopkg_urfave_cli_v2//altsrc:go_default_library",
|
2020-05-05 20:13:18 +00:00
|
|
|
"@org_golang_x_crypto//ssh/terminal:go_default_library",
|
2020-01-05 04:32:09 +00:00
|
|
|
],
|
2018-07-19 16:31:50 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
go_test(
|
|
|
|
name = "go_default_test",
|
2019-06-30 16:00:22 +00:00
|
|
|
size = "small",
|
2020-05-12 15:01:02 +00:00
|
|
|
srcs = [
|
|
|
|
"customflags_test.go",
|
|
|
|
"helpers_test.go",
|
|
|
|
],
|
2018-07-19 16:31:50 +00:00
|
|
|
embed = [":go_default_library"],
|
2020-05-12 15:01:02 +00:00
|
|
|
deps = [
|
|
|
|
"@com_github_golang_mock//gomock:go_default_library",
|
|
|
|
"@com_github_pkg_errors//:go_default_library",
|
|
|
|
],
|
2018-07-19 16:31:50 +00:00
|
|
|
)
|