some fixes for bazel v1 (#3754)

This commit is contained in:
Preston Van Loon 2019-10-12 16:55:56 +09:00 committed by GitHub
parent 1dbb67af81
commit 9e6b4d1f29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 1 additions and 40 deletions

View File

@ -1014,7 +1014,7 @@ go_repository(
go_repository(
name = "grpc_ecosystem_grpc_gateway",
commit = "740ef2ee80c49ed4a272e8c3b54ebf352109f572",
commit = "e652ba06e9067ef41c199af59b9c6c67724850d4",
importpath = "github.com/grpc-ecosystem/grpc-gateway",
)

View File

@ -10,9 +10,6 @@ go_library(
"main.go",
"usage.go",
],
data = [
"//proto/beacon/rpc/v1:swagger",
],
importpath = "github.com/prysmaticlabs/prysm/beacon-chain",
visibility = ["//beacon-chain:__subpackages__"],
deps = [

View File

@ -59,9 +59,3 @@ proto_library(
"@grpc_ecosystem_grpc_gateway//protoc-gen-swagger/options:options_proto",
],
)
protoc_gen_swagger(
name = "swagger",
proto = ":v1_proto",
visibility = ["//visibility:public"],
)

View File

@ -6,36 +6,6 @@ import "google/protobuf/empty.proto";
import "proto/eth/v1alpha1/beacon_block.proto";
import "proto/eth/v1alpha1/attestation.proto";
import "google/api/annotations.proto";
import "protoc-gen-swagger/options/annotations.proto";
option (grpc.gateway.protoc_gen_swagger.options.openapiv2_swagger) = {
info: {
title: "Prysm";
version: "0.0.0";
contact: {
name: "Prysmatic Labs";
url: "https://prysmaticlabs.com";
email: "team@prysmaticlabs.com";
};
license: {
name: "GNU General Public License v3.0";
url: "https://github.com/prysmaticlabs/prysm/blob/master/LICENSE.md";
};
description: "JSON RPC services provided by Prysm."
};
external_docs: {
url: "https://github.com/prysmaticlabs/prysm";
description : "Prysm Github";
};
host: "api.prylabs.net",
schemes: HTTPS;
consumes: "application/json";
consumes: "application/grpc-web-text";
consumes: "application/grpc-web-json";
produces: "application/json";
produces: "application/grpc-web-text";
consumes: "application/grpc-web-json";
};
service AttesterService {
rpc RequestAttestation(AttestationRequest) returns (ethereum.eth.v1alpha1.AttestationData);