From d1788b74381508bb3b57b6763b3dd17df612d8ae Mon Sep 17 00:00:00 2001 From: Michael Garcia Date: Wed, 20 Apr 2022 15:43:23 -0700 Subject: [PATCH 1/2] Update golangci-lint-action to 3.1.0 The golangci-lint-action in the GitHub actions was failing because it was auto-updating go to the latest version (1.18). Version 3 does not re-install Go, instead it uses the currently installed version which works with the github action. --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a16e62a..e00a74c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,7 +12,7 @@ jobs: steps: - uses: actions/checkout@v2 - name: golangci-lint - uses: golangci/golangci-lint-action@v2 + uses: golangci/golangci-lint-action@v3.1.0 with: version: v1.33 - uses: actions/setup-go@v1 From 4f5886855d8ef9d2c2916dfd40a2449270bb7438 Mon Sep 17 00:00:00 2001 From: Michael Garcia Date: Wed, 20 Apr 2022 16:23:39 -0700 Subject: [PATCH 2/2] Update setup-go to v3 golangci-lint-action@3.1.0 lists setup-go@v3 as a requirement, so the version was upgraded to be compatible. Information retrieved from https://github.com/golangci/golangci-lint-action in the "Compatibility" section: "v3.0.0+ requires explicit setup-go installation step prior to using this action: uses: actions/setup-go@v3." --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e00a74c..1ddefa6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,7 +15,7 @@ jobs: uses: golangci/golangci-lint-action@v3.1.0 with: version: v1.33 - - uses: actions/setup-go@v1 + - uses: actions/setup-go@v3 with: go-version: ${{ matrix.go }} - name: build