2018-07-07 17:23:19 +00:00
|
|
|
load("@bazel_gazelle//:def.bzl", "gazelle")
|
2018-10-03 02:04:36 +00:00
|
|
|
load("@com_github_atlassian_bazel_tools//gometalinter:def.bzl", "gometalinter")
|
|
|
|
load("@com_github_atlassian_bazel_tools//goimports:def.bzl", "goimports")
|
|
|
|
load("@io_kubernetes_build//defs:run_in_workspace.bzl", "workspace_binary")
|
|
|
|
|
|
|
|
prefix = "github.com/prysmaticlabs/prysm"
|
2018-07-07 17:23:19 +00:00
|
|
|
|
2018-12-05 23:44:07 +00:00
|
|
|
exports_files(["genesis.json"])
|
|
|
|
|
2018-07-20 21:31:26 +00:00
|
|
|
# gazelle:prefix github.com/prysmaticlabs/prysm
|
2018-07-07 17:23:19 +00:00
|
|
|
gazelle(
|
|
|
|
name = "gazelle",
|
2018-10-03 02:04:36 +00:00
|
|
|
prefix = prefix,
|
|
|
|
)
|
|
|
|
|
2018-12-23 20:34:59 +00:00
|
|
|
# Protobuf compiler (non-gRPC)
|
|
|
|
alias(
|
|
|
|
name = "proto_compiler",
|
|
|
|
actual = "@io_bazel_rules_go//proto:gogofast_proto",
|
2019-02-19 17:32:14 +00:00
|
|
|
visibility = [
|
|
|
|
"//proto:__subpackages__",
|
|
|
|
],
|
2018-12-23 20:34:59 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
# Protobuf compiler (gRPC)
|
|
|
|
alias(
|
|
|
|
name = "grpc_proto_compiler",
|
|
|
|
actual = "@io_bazel_rules_go//proto:gogofast_grpc",
|
2019-02-19 17:32:14 +00:00
|
|
|
visibility = [
|
|
|
|
"//proto:__subpackages__",
|
|
|
|
],
|
2018-12-23 20:34:59 +00:00
|
|
|
)
|
|
|
|
|
2018-10-03 02:04:36 +00:00
|
|
|
gometalinter(
|
|
|
|
name = "gometalinter",
|
|
|
|
config = "//:.gometalinter.json",
|
|
|
|
paths = [
|
|
|
|
"./...",
|
|
|
|
],
|
|
|
|
prefix = prefix,
|
|
|
|
)
|
|
|
|
|
|
|
|
goimports(
|
|
|
|
name = "goimports",
|
|
|
|
display_diffs = True,
|
|
|
|
write = False,
|
|
|
|
prefix = prefix,
|
|
|
|
)
|
|
|
|
|
|
|
|
workspace_binary(
|
|
|
|
name = "golint",
|
|
|
|
cmd = "@com_github_golang_lint//golint",
|
2018-07-07 17:23:19 +00:00
|
|
|
)
|