Skip to content

Commit

Permalink
gha: fix golangci-lint, upgrade to v1.52.2
Browse files Browse the repository at this point in the history
- 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]>
  • Loading branch information
thaJeztah committed May 24, 2023
1 parent df61585 commit e5acd95
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -76,7 +80,6 @@ jobs:
- name: Set env
shell: bash
run: |
echo "GOPATH=${{ github.workspace }}" >> $GITHUB_ENV
echo "${{ github.workspace }}/bin" >> $GITHUB_PATH
- run: |
Expand Down

0 comments on commit e5acd95

Please sign in to comment.