Skip to content

Commit e5acd95

Browse files
committed
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 <[email protected]>
1 parent df61585 commit e5acd95

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ jobs:
2121
- name: Set env
2222
shell: bash
2323
run: |
24-
echo "GOPATH=${{ github.workspace }}" >> $GITHUB_ENV
2524
echo "${{ github.workspace }}/bin" >> $GITHUB_PATH
2625
2726
- uses: actions/checkout@v3
@@ -51,13 +50,18 @@ jobs:
5150
- name: Set env
5251
shell: bash
5352
run: |
54-
echo "GOPATH=${{ github.workspace }}" >> $GITHUB_ENV
5553
echo "${{ github.workspace }}/bin" >> $GITHUB_PATH
5654
55+
- uses: actions/setup-go@v3
56+
with:
57+
go-version: ${{ matrix.os-version }}
58+
59+
- uses: actions/checkout@v3
5760
- uses: golangci/golangci-lint-action@v3
5861
with:
59-
version: v1.50.1
60-
working-directory: src/github.com/containerd/zfs
62+
version: v1.52.2
63+
skip-cache: true
64+
args: --timeout=8m
6165

6266
tests:
6367
name: Tests
@@ -76,7 +80,6 @@ jobs:
7680
- name: Set env
7781
shell: bash
7882
run: |
79-
echo "GOPATH=${{ github.workspace }}" >> $GITHUB_ENV
8083
echo "${{ github.workspace }}/bin" >> $GITHUB_PATH
8184
8285
- run: |

0 commit comments

Comments
 (0)