From 9c724b14c3074cf11dd20a1049c7123a24c07e8a Mon Sep 17 00:00:00 2001 From: Geoff Stuart Date: Mon, 27 Nov 2023 14:08:49 -0500 Subject: [PATCH] fix --- .github/workflows/abi_bindings_checker.yml | 2 +- docker/Dockerfile | 11 +++-------- scripts/install_foundry.sh | 2 +- 3 files changed, 5 insertions(+), 10 deletions(-) diff --git a/.github/workflows/abi_bindings_checker.yml b/.github/workflows/abi_bindings_checker.yml index aba7da635..f30bb38f6 100644 --- a/.github/workflows/abi_bindings_checker.yml +++ b/.github/workflows/abi_bindings_checker.yml @@ -28,7 +28,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v4 with: - go-version: "1.20.8" + go-version: ${{ env.GO_VERSION }} - name: Install Foundry run: ./scripts/install_foundry.sh diff --git a/docker/Dockerfile b/docker/Dockerfile index 4850c5f1f..aa7c61ae5 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -11,6 +11,8 @@ ARG ARCH=amd64 ARG GO_VERSION +COPY ../scripts/install_foundry.sh /scripts/install_foundry.sh + # defaults to grep running in a container. ENV grepcmd=grep @@ -38,14 +40,7 @@ ENV LANG en_US.utf8 # Install foundry from specific commit SHELL ["/bin/bash", "-c"] -ENV FOUNDRY_VERSION v0.1.0 -RUN curl -L https://raw.githubusercontent.com/ava-labs/foundry/${FOUNDRY_VERSION}/foundryup/install > /tmp/foundry-install-script && \ - sed -i 's/\/ava-labs\/foundry\/master\/foundryup/\/ava-labs\/foundry\/${FOUNDRY_VERSION}\/foundryup/g' /tmp/foundry-install-script && \ - cat /tmp/foundry-install-script | bash && \ - echo "export PATH=\"$PATH:/$HOME/.foundry/bin\"">> ~/.bashrc && \ - source ~/.bashrc && \ - export PATH=$PATH:$HOME/.foundry/bin:$HOME/.cargo/bin && \ - foundryup --version ${FOUNDRY_VERSION} +RUN ./scripts/install_foundry.sh # Install python base58 decode library RUN apt-get update && \ diff --git a/scripts/install_foundry.sh b/scripts/install_foundry.sh index 79c371b69..345cf5757 100755 --- a/scripts/install_foundry.sh +++ b/scripts/install_foundry.sh @@ -2,7 +2,7 @@ # Copyright (C) 2023, Ava Labs, Inc. All rights reserved. # See the file LICENSE for licensing terms. -set -ex +set -e export XDG_CONFIG_HOME=$HOME