[bignum-fuzzer] Build and use latest Golang (#2193)

This commit is contained in:
Guido Vranken 2019-03-01 00:50:31 +01:00 committed by jonathanmetzman
parent dfd4be9f9a
commit 1bff6fe295
2 changed files with 12 additions and 0 deletions

View File

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

View File

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