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
This commit is contained in:
Martin Holst Swende 2020-12-24 17:43:38 +01:00 committed by GitHub
parent 4a60210210
commit 3f2cbfdc11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 2 deletions

View File

@ -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/