2021-06-30 19:22:09 +00:00
|
|
|
load("@prysm//tools/go:def.bzl", "go_library", "go_test")
|
|
|
|
load("@io_bazel_rules_go//go:def.bzl", "go_binary")
|
2023-12-13 23:31:58 +00:00
|
|
|
load("//tools:prysm_image.bzl", "prysm_image_upload")
|
2021-03-30 16:42:50 +00:00
|
|
|
|
|
|
|
go_library(
|
|
|
|
name = "go_default_library",
|
|
|
|
srcs = ["main.go"],
|
2024-02-15 05:46:47 +00:00
|
|
|
importpath = "github.com/prysmaticlabs/prysm/v5/tools/http-request-sink",
|
2021-03-30 16:42:50 +00:00
|
|
|
visibility = ["//visibility:private"],
|
2021-09-21 19:59:25 +00:00
|
|
|
deps = ["//config/params:go_default_library"],
|
2021-03-30 16:42:50 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
go_binary(
|
|
|
|
name = "http-request-sink",
|
|
|
|
embed = [":go_default_library"],
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
)
|
|
|
|
|
|
|
|
go_test(
|
|
|
|
name = "go_default_test",
|
|
|
|
srcs = ["main_test.go"],
|
|
|
|
embed = [":go_default_library"],
|
|
|
|
deps = [
|
2021-09-21 19:59:25 +00:00
|
|
|
"//config/params:go_default_library",
|
2021-09-23 18:53:46 +00:00
|
|
|
"//testing/require:go_default_library",
|
2021-03-30 16:42:50 +00:00
|
|
|
],
|
|
|
|
)
|
2023-12-13 23:31:58 +00:00
|
|
|
|
|
|
|
prysm_image_upload(
|
|
|
|
name = "push_images",
|
|
|
|
binary = ":http-request-sink",
|
|
|
|
entrypoint = ["/http-request-sink"],
|
|
|
|
repository = "gcr.io/prysmaticlabs/prysm/http-request-sink",
|
|
|
|
symlinks = {
|
|
|
|
# Backwards compatibility for images that depended on the old filepath.
|
|
|
|
"/app/tools/http-request-sink/http-request-sink": "/http-request-sink",
|
|
|
|
},
|
|
|
|
tags = ["manual"],
|
|
|
|
)
|