diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index 4208b66525..4c677b3a9e 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -45,6 +45,7 @@ jobs: - name: Test Build run: | + GOPROXY=direct go mod download make geth diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml index 8b524a056b..f05b586345 100644 --- a/.github/workflows/integration-test.yml +++ b/.github/workflows/integration-test.yml @@ -22,4 +22,6 @@ jobs: uses: actions/checkout@v3 - name: Truffle test - run: make truffle-test + run: | + GOPROXY=direct go mod download + make truffle-test diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 126ff9f418..5cebc3cf9f 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -44,8 +44,7 @@ jobs: ${{ runner.os }}-go- - run: | - go mod tidy - go mod download + GOPROXY=direct go mod download - name: golangci-lint uses: golangci/golangci-lint-action@v3 diff --git a/.github/workflows/pre-release.yml b/.github/workflows/pre-release.yml index ac2da47e1f..8e4ec9b71a 100644 --- a/.github/workflows/pre-release.yml +++ b/.github/workflows/pre-release.yml @@ -6,6 +6,9 @@ on: tags: - 'pre-*' +env: + GOPROXY: direct + jobs: build: name: Build Release @@ -44,7 +47,9 @@ jobs: # ============================== - name: Build Binary for ${{matrix.os}} - run: make geth + run: | + go mod download + make geth # ============================== # Cross Compile for ARM @@ -53,6 +58,7 @@ jobs: - name: Build Binary for ARM if: matrix.os == 'ubuntu-latest' run: | + go mod download make geth-linux-arm # ============================== # Upload artifacts diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f04f7d474e..bba0aa1708 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,6 +6,9 @@ on: tags: - v* +env: + GOPROXY: direct + jobs: build: name: Build Release @@ -44,7 +47,9 @@ jobs: # ============================== - name: Build Binary for ${{matrix.os}} - run: make geth + run: | + go mod download + make geth # ============================== # Cross Compile for ARM @@ -53,6 +58,7 @@ jobs: - name: Build Binary for ARM if: matrix.os == 'ubuntu-latest' run: | + go mod download make geth-linux-arm # ============================== # Upload artifacts diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index 2f0f32273d..abd5b30a7f 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -47,5 +47,6 @@ jobs: env: ANDROID_HOME: "" # Skip android test run: | + GOPROXY=direct go mod download make test diff --git a/Dockerfile b/Dockerfile index 9640724bd7..827ca5e6f1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,6 +10,7 @@ RUN apk add --no-cache make gcc musl-dev linux-headers git bash # Get dependencies - will also be cached if we won't change go.mod/go.sum COPY go.mod /go-ethereum/ COPY go.sum /go-ethereum/ +ENV GOPROXY=direct RUN cd /go-ethereum && go mod download ADD . /go-ethereum diff --git a/docker/Dockerfile b/docker/Dockerfile index 7b1dd08d8a..c6f776ab6e 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -4,7 +4,7 @@ RUN apk add --no-cache make gcc musl-dev linux-headers git bash ADD . /bsc WORKDIR /bsc -RUN make geth +RUN GOPROXY=direct go mod download && make geth RUN mv /bsc/build/bin/geth /usr/local/bin/geth EXPOSE 8545 8547 30303 30303/udp