prysm-pulse/tools/nogo_config/BUILD.bazel
Preston Van Loon f537a98fcd
Add staticchecks to bazel builds (#13298)
* Update staticcheck to latest

* Add static checks while ignoring for third party / external stuff

* Added a hack to keep go mod happy.

* disable SA2002

* Pin go mod tidy checker image to golang:1.20-alpine
2023-12-08 05:42:55 +00:00

28 lines
630 B
Python

load("@io_bazel_rules_go//go:def.bzl", "go_binary")
load("@prysm//tools/go:def.bzl", "go_library", "go_test")
# gazelle:exclude hack.go
go_library(
name = "go_default_library",
srcs = [
"config.go",
"config_exclusion.go",
"main.go",
],
importpath = "github.com/prysmaticlabs/prysm/v4/tools/nogo_config",
visibility = ["//visibility:private"],
)
go_binary(
name = "nogo_config",
embed = [":go_default_library"],
visibility = ["//visibility:public"],
)
go_test(
name = "go_default_test",
srcs = ["config_exclusion_test.go"],
embed = [":go_default_library"],
)