From 1bff6fe295a21cc3f2496c25747f886c0db3f14b Mon Sep 17 00:00:00 2001 From: Guido Vranken Date: Fri, 1 Mar 2019 00:50:31 +0100 Subject: [PATCH] [bignum-fuzzer] Build and use latest Golang (#2193) --- projects/bignum-fuzzer/Dockerfile | 1 + projects/bignum-fuzzer/build.sh | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/projects/bignum-fuzzer/Dockerfile b/projects/bignum-fuzzer/Dockerfile index eac4609b0..87289de32 100644 --- a/projects/bignum-fuzzer/Dockerfile +++ b/projects/bignum-fuzzer/Dockerfile @@ -20,6 +20,7 @@ RUN apt-get update && apt-get install -y software-properties-common python-softw RUN add-apt-repository -y ppa:gophers/archive && apt-get update && apt-get install -y golang-1.9-go RUN ln -s /usr/lib/go-1.9/bin/go /usr/bin/go +RUN git clone --recursive https://github.com/golang/go RUN git clone --depth 1 https://github.com/guidovranken/bignum-fuzzer RUN git clone --depth 1 https://github.com/openssl/openssl RUN hg clone https://gmplib.org/repo/gmp/ libgmp/ diff --git a/projects/bignum-fuzzer/build.sh b/projects/bignum-fuzzer/build.sh index a224d5870..07985058e 100755 --- a/projects/bignum-fuzzer/build.sh +++ b/projects/bignum-fuzzer/build.sh @@ -1,3 +1,14 @@ +# Compile latest Go +cd go/src +./make.bash +cd $SRC + +# Remove previous Go install (used for bootstrapping) +apt-get remove golang-1.9-go -y +rm /usr/bin/go + +export PATH=`realpath $SRC/go/bin`:$PATH + # Install Rust nightly curl https://sh.rustup.rs -sSf | sh -s -- -y source $HOME/.cargo/env