[grpc-gateway] Fix failing build (#5111)

This commit is contained in:
AdamKorcz 2021-02-04 13:43:10 +00:00 committed by GitHub
parent 79ce55b888
commit 60d9b0d9a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 2 deletions

View File

@ -15,6 +15,7 @@
################################################################################
FROM gcr.io/oss-fuzz-base/base-builder
RUN go get github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway
ENV GO111MODULE on
RUN git clone https://github.com/grpc-ecosystem/grpc-gateway
COPY build.sh $SRC/
WORKDIR $SRC/

View File

@ -15,5 +15,13 @@
#
################################################################################
mkdir $GOPATH/src/github.com/grpc-ecosystem
mv $SRC/grpc-gateway $GOPATH/src/github.com/grpc-ecosystem/
cd $GOPATH/src/github.com/grpc-ecosystem/grpc-gateway && go get ./...
compile_go_fuzzer github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway/httprule Fuzz fuzz
if [ "$SANITIZER" = "coverage" ]
then
compile_go_fuzzer github.com/grpc-ecosystem/grpc-gateway/internal/httprule Fuzz fuzz gofuzz
else
compile_go_fuzzer github.com/grpc-ecosystem/grpc-gateway/v2/internal/httprule Fuzz fuzz gofuzz
fi