2020-10-09 14:58:30 +00:00
|
|
|
load("@io_bazel_rules_go//go:def.bzl", "go_test")
|
|
|
|
load("@prysm//tools/go:def.bzl", "go_library")
|
|
|
|
load("@io_bazel_rules_go//extras:embed_data.bzl", "go_embed_data")
|
|
|
|
|
|
|
|
# gazelle:ignore site_data.go
|
|
|
|
go_library(
|
|
|
|
name = "go_default_library",
|
|
|
|
srcs = [
|
|
|
|
"doc.go",
|
|
|
|
"handler.go",
|
2021-01-11 20:03:28 +00:00
|
|
|
"log.go",
|
2020-10-09 14:58:30 +00:00
|
|
|
":site_data", # keep
|
|
|
|
],
|
|
|
|
importpath = "github.com/prysmaticlabs/prysm/validator/web",
|
2021-05-04 15:20:58 +00:00
|
|
|
visibility = [
|
2021-09-16 19:55:51 +00:00
|
|
|
"//api/gateway:__pkg__",
|
2021-05-04 15:20:58 +00:00
|
|
|
"//validator:__subpackages__",
|
|
|
|
],
|
2020-10-09 14:58:30 +00:00
|
|
|
deps = [
|
2021-09-17 19:20:50 +00:00
|
|
|
"//runtime:go_default_library",
|
2020-10-09 14:58:30 +00:00
|
|
|
"@com_github_sirupsen_logrus//:go_default_library",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
go_embed_data(
|
|
|
|
name = "site_data",
|
|
|
|
srcs = [
|
|
|
|
"@prysm_web_ui//:site",
|
|
|
|
],
|
|
|
|
var = "site",
|
|
|
|
)
|
|
|
|
|
|
|
|
go_test(
|
|
|
|
name = "go_default_test",
|
|
|
|
srcs = ["handler_test.go"],
|
|
|
|
embed = [":go_default_library"],
|
2021-09-23 18:53:46 +00:00
|
|
|
deps = ["//testing/assert:go_default_library"],
|
2020-10-09 14:58:30 +00:00
|
|
|
)
|