From 9678e0f7c74818259f6b7a6b402b5792056fecb9 Mon Sep 17 00:00:00 2001 From: Anton Litvinov Date: Fri, 26 Jul 2024 12:14:15 +0400 Subject: [PATCH] Clear previous go setup (from system) Signed-off-by: Anton Litvinov --- .github/workflows/build-packages.yml | 21 +++++++++++++++++++++ .github/workflows/release.yml | 22 ++++++++++++++++++++++ .github/workflows/tests-and-linters.yml | 15 +++++++++++++++ 3 files changed, 58 insertions(+) diff --git a/.github/workflows/build-packages.yml b/.github/workflows/build-packages.yml index 0464364845..7e01a809f4 100644 --- a/.github/workflows/build-packages.yml +++ b/.github/workflows/build-packages.yml @@ -32,6 +32,11 @@ jobs: with: go-version: '1.22.x' + - name: Clean previous go installation + run: | + export PATH=${GOROOT}/bin:$PATH + go version + - name: Prepare environment run: | RELEASE_BUILD=false @@ -111,6 +116,11 @@ jobs: with: name: env.sh + - name: Clean previous go installation + run: | + export PATH=${GOROOT}/bin:$PATH + go version + - name: Setup FPM run: | sudo apt-get update @@ -138,6 +148,12 @@ jobs: - uses: actions/download-artifact@v4 with: name: env.sh + + - name: Clean previous go installation + run: | + export PATH=${GOROOT}/bin:$PATH + go version + - name: Login to Docker Hub uses: docker/login-action@v3 with: @@ -176,6 +192,11 @@ jobs: with: name: env.sh + - name: Clean previous go installation + run: | + export PATH=${GOROOT}/bin:$PATH + go version + - name: Remove bucket run: | source env.sh diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f7bc05e476..ed9d864859 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -32,6 +32,11 @@ jobs: name: env.sh github-token: ${{ secrets.GITHUB_TOKEN }} + - name: Clean previous go installation + run: | + export PATH=${GOROOT}/bin:$PATH + go version + - name: Release nightly snapshot run: | source env.sh @@ -64,6 +69,12 @@ jobs: with: name: env.sh github-token: ${{ secrets.GITHUB_TOKEN }} + + - name: Clean previous go installation + run: | + export PATH=${GOROOT}/bin:$PATH + go version + - name: Login to Docker Hub uses: docker/login-action@v3 with: @@ -113,6 +124,12 @@ jobs: with: name: env.sh github-token: ${{ secrets.GITHUB_TOKEN }} + + - name: Clean previous go installation + run: | + export PATH=${GOROOT}/bin:$PATH + go version + - name: Login to Docker Hub uses: docker/login-action@v3 with: @@ -150,6 +167,11 @@ jobs: name: env.sh github-token: ${{ secrets.GITHUB_TOKEN }} + - name: Clean previous go installation + run: | + export PATH=${GOROOT}/bin:$PATH + go version + - name: PR Avado run: | source env.sh diff --git a/.github/workflows/tests-and-linters.yml b/.github/workflows/tests-and-linters.yml index e284ca53e9..4e63acbe9f 100644 --- a/.github/workflows/tests-and-linters.yml +++ b/.github/workflows/tests-and-linters.yml @@ -16,6 +16,11 @@ jobs: with: go-version: '1.22.x' + - name: Clean previous go installation + run: | + export PATH=${GOROOT}/bin:$PATH + go version + - name: Install protoc run: | sudo apt-get update @@ -43,6 +48,11 @@ jobs: with: go-version: '1.22.x' + - name: Clean previous go installation + run: | + export PATH=${GOROOT}/bin:$PATH + go version + - name: Login to Docker Hub uses: docker/login-action@v3 with: @@ -62,6 +72,11 @@ jobs: with: go-version: '1.22.x' + - name: Clean previous go installation + run: | + export PATH=${GOROOT}/bin:$PATH + go version + - name: Login to Docker Hub uses: docker/login-action@v3 with: