From e5acd9583b95971c99a3d1f75c2d45f5d300da00 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Thu, 25 May 2023 01:16:59 +0200 Subject: [PATCH] gha: fix golangci-lint, upgrade to v1.52.2 - Looks like golangci-lint failed, because Go was not installed. - GOPATH was set, which made it complain; level=error msg="Running error: context loading failed: failed to load packages: failed to load with go/packages: err: exit status 1: stderr: $GOPATH/go.mod exists but should not\n" Signed-off-by: Sebastiaan van Stijn --- .github/workflows/ci.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index db4edc0..d1af802 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,7 +21,6 @@ jobs: - name: Set env shell: bash run: | - echo "GOPATH=${{ github.workspace }}" >> $GITHUB_ENV echo "${{ github.workspace }}/bin" >> $GITHUB_PATH - uses: actions/checkout@v3 @@ -51,13 +50,18 @@ jobs: - name: Set env shell: bash run: | - echo "GOPATH=${{ github.workspace }}" >> $GITHUB_ENV echo "${{ github.workspace }}/bin" >> $GITHUB_PATH + - uses: actions/setup-go@v3 + with: + go-version: ${{ matrix.os-version }} + + - uses: actions/checkout@v3 - uses: golangci/golangci-lint-action@v3 with: - version: v1.50.1 - working-directory: src/github.com/containerd/zfs + version: v1.52.2 + skip-cache: true + args: --timeout=8m tests: name: Tests @@ -76,7 +80,6 @@ jobs: - name: Set env shell: bash run: | - echo "GOPATH=${{ github.workspace }}" >> $GITHUB_ENV echo "${{ github.workspace }}/bin" >> $GITHUB_PATH - run: |