mirror of https://github.com/google/oss-fuzz.git
[grpc-gateway] Fix failing build (#5111)
This commit is contained in:
parent
79ce55b888
commit
60d9b0d9a7
|
@ -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/
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue