From 3f2cbfdc11d9e3eb401a9f76da61829beaa700a6 Mon Sep 17 00:00:00 2001 From: Martin Holst Swende Date: Thu, 24 Dec 2020 17:43:38 +0100 Subject: [PATCH] go-ethereum: install go-ethereum in go-path (#4858) * go-ethereum: install go-ethereum in * go-ethereum: fix build error * go-ethereum: download deps in build step --- projects/go-ethereum/Dockerfile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/projects/go-ethereum/Dockerfile b/projects/go-ethereum/Dockerfile index a9f4405c6..8323922d7 100644 --- a/projects/go-ethereum/Dockerfile +++ b/projects/go-ethereum/Dockerfile @@ -16,7 +16,12 @@ FROM gcr.io/oss-fuzz-base/base-builder -RUN (cd $SRC && git clone --single-branch --depth=1 https://github.com/ethereum/go-ethereum) +RUN git clone --single-branch --depth=1 https://github.com/ethereum/go-ethereum $GOPATH/src/github.com/ethereum/go-ethereum +RUN (cd $GOPATH/src/github.com/ethereum/go-ethereum && go mod download) + +RUN cp $GOPATH/src/github.com/ethereum/go-ethereum/oss-fuzz.sh $SRC/build.sh +# Enable this for easier local testing / repro +#ADD build.sh $SRC/build.sh -RUN cp $SRC/go-ethereum/oss-fuzz.sh $SRC/build.sh WORKDIR $SRC/ +