From b57511fcf8187737598a67c8791b7a5e10a878ca Mon Sep 17 00:00:00 2001 From: cpu1 Date: Wed, 29 Nov 2023 13:18:14 +0530 Subject: [PATCH] Disable caching in actions/setup-go --- .../workflows/build-all-distros-nightly.yaml | 9 ++++--- .github/workflows/ecr-publish-build.yaml | 11 ++++---- .github/workflows/link-checker.yaml | 1 + .github/workflows/publish-docs.yaml | 1 + .github/workflows/publish-release-type.yaml | 9 ++++--- .github/workflows/test-and-build.yaml | 27 ++++++++++--------- 6 files changed, 33 insertions(+), 25 deletions(-) diff --git a/.github/workflows/build-all-distros-nightly.yaml b/.github/workflows/build-all-distros-nightly.yaml index 92b570eb55c..98fd5145a30 100644 --- a/.github/workflows/build-all-distros-nightly.yaml +++ b/.github/workflows/build-all-distros-nightly.yaml @@ -31,6 +31,11 @@ jobs: uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 #v4.1.1 with: fetch-depth: 0 + - name: Setup Go + uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe #v4.1.0 + with: + go-version: 1.20.x + cache: false - name: Cache go-build and mod uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 #v3.3.2 with: @@ -38,10 +43,6 @@ jobs: ~/.cache/go-build/ ~/go/pkg/mod/ key: ${{ hashFiles('go.sum') }} - - name: Setup Go - uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe #v4.1.0 - with: - go-version: 1.20.x - name: Setup deps run: | make install-build-deps diff --git a/.github/workflows/ecr-publish-build.yaml b/.github/workflows/ecr-publish-build.yaml index 4cf8675d780..71bb5a9816d 100644 --- a/.github/workflows/ecr-publish-build.yaml +++ b/.github/workflows/ecr-publish-build.yaml @@ -28,6 +28,12 @@ jobs: with: registry-type: public + - name: Setup Go + uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe #v4.1.0 + with: + go-version: 1.20.x + cache: false + - name: Cache go-build and mod uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 #v3.3.2 with: @@ -38,11 +44,6 @@ jobs: restore-keys: | go- - - name: Setup Go - uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe #v4.1.0 - with: - go-version: 1.20.x - - name: Setup deps run: | make install-build-deps diff --git a/.github/workflows/link-checker.yaml b/.github/workflows/link-checker.yaml index c70dfb7301f..154fecd0ab1 100644 --- a/.github/workflows/link-checker.yaml +++ b/.github/workflows/link-checker.yaml @@ -29,6 +29,7 @@ jobs: uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe #v4.1.0 with: go-version: 1.20.x + cache: false - name: Install doc dependencies run: make install-site-deps - name: Build docs for link check diff --git a/.github/workflows/publish-docs.yaml b/.github/workflows/publish-docs.yaml index 044d7e7812b..b97afbd73d6 100644 --- a/.github/workflows/publish-docs.yaml +++ b/.github/workflows/publish-docs.yaml @@ -18,6 +18,7 @@ jobs: uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe #v4.1.0 with: go-version: 1.20.x + cache: false - name: Cache go-build and mod uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 #v3.3.2 with: diff --git a/.github/workflows/publish-release-type.yaml b/.github/workflows/publish-release-type.yaml index 6cebeb47701..5a6aa35b94f 100644 --- a/.github/workflows/publish-release-type.yaml +++ b/.github/workflows/publish-release-type.yaml @@ -29,6 +29,11 @@ jobs: df -h - name: Checkout uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 #v4.1.1 + - name: Setup Go + uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe #v4.1.0 + with: + go-version: 1.20.x + cache: false - name: Cache go-build and mod uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 #v3.3.2 with: @@ -38,10 +43,6 @@ jobs: key: go-${{ hashFiles('go.sum') }} restore-keys: | go- - - name: Setup Go - uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe #v4.1.0 - with: - go-version: 1.20.x - name: Setup deps run: | make install-build-deps diff --git a/.github/workflows/test-and-build.yaml b/.github/workflows/test-and-build.yaml index 0770773b09f..0ed6fe950c7 100644 --- a/.github/workflows/test-and-build.yaml +++ b/.github/workflows/test-and-build.yaml @@ -13,6 +13,11 @@ jobs: uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 #v4.1.1 with: fetch-depth: 0 + - name: Setup Go + uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe #v4.1.0 + with: + go-version: 1.20.x + cache: false - name: Cache go-build and mod uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 #v3.3.2 with: @@ -22,10 +27,6 @@ jobs: key: go-${{ hashFiles('go.sum') }} restore-keys: | go- - - name: Setup Go - uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe #v4.1.0 - with: - go-version: 1.20.x - name: Setup deps run: | make install-build-deps @@ -41,6 +42,11 @@ jobs: uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 #v4.1.1 with: fetch-depth: 0 + - name: Setup Go + uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe #v4.1.0 + with: + go-version: 1.20.x + cache: false - name: Cache go-build and mod uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 #v3.3.2 with: @@ -50,10 +56,6 @@ jobs: key: go-${{ hashFiles('go.sum') }} restore-keys: | go- - - name: Setup Go - uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe #v4.1.0 - with: - go-version: 1.20.x - name: Setup deps run: | make install-build-deps @@ -68,6 +70,11 @@ jobs: uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 #v4.1.1 with: fetch-depth: 0 + - name: Setup Go + uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe #v4.1.0 + with: + go-version: 1.20.x + cache: false - name: Cache go-build and mod uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 #v3.3.2 with: @@ -77,10 +84,6 @@ jobs: key: go-${{ hashFiles('go.sum') }} restore-keys: | go- - - name: Setup Go - uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe #v4.1.0 - with: - go-version: 1.20.x - name: Setup deps run: | make install-build-deps