prysm-pulse/proto/eth/v1alpha1/BUILD.bazel
Preston Van Loon 365580706b
Ethereum APIs compatibility test (#3010)
* update some k8s deps

* merge

* fix build sizes

* Add test for compatability for upstream protos

* Add test for compatability for upstream protos

* Add test for compatability for upstream protos

* add field name check

* passing test
2019-07-21 16:20:09 -04:00

54 lines
1.5 KiB
Python

# gazelle:ignore
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library")
go_proto_library(
name = "v1alpha1_go_proto",
compiler = "//:proto_compiler",
importpath = "github.com/prysmaticlabs/prysm/proto/eth/v1alpha1",
proto = ":v1alpha1_proto",
visibility = ["//visibility:public"],
deps = [
"@com_github_prysmaticlabs_go_bitfield//:go_default_library",
"@go_googleapis//google/api:annotations_go_proto",
],
)
go_library(
name = "go_default_library",
embed = [":v1alpha1_go_proto"],
importpath = "github.com/prysmaticlabs/prysm/proto/eth/v1alpha1",
visibility = ["//visibility:public"],
deps = [
"@com_github_prysmaticlabs_go_bitfield//:go_default_library",
],
)
proto_library(
name = "v1alpha1_proto",
srcs = [
"attestation.proto",
"beacon_block.proto",
"beacon_chain.proto",
"node.proto",
"validator.proto",
],
visibility = ["//visibility:public"],
deps = [
"@com_google_protobuf//:empty_proto",
"@com_google_protobuf//:timestamp_proto",
"@go_googleapis//google/api:annotations_proto",
"@gogo_special_proto//github.com/gogo/protobuf/gogoproto",
],
)
go_test(
name = "go_default_test",
size = "small",
srcs = ["compatability_test.go"],
embed = ["go_default_library"],
deps = [
"@com_github_prysmaticlabs_ethereumapis//eth/v1alpha1:go_default_library",
],
)