Skip to content

Commit 6ce7c77

Browse files
committed
ci: fix CI by removing go.work before lint/vet/security steps
1 parent 0fbe668 commit 6ce7c77

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ jobs:
5050
with:
5151
go-version: ${{ env.GO_VERSION }}
5252
cache: true
53-
- name: gofumpt diff
53+
- name: Remove go.work
54+
run: rm -f go.work go.work.sum - name: gofumpt diff
5455
run: |
5556
go install mvdan.cc/gofumpt@latest
5657
out=$(gofumpt -l .)
@@ -74,7 +75,8 @@ jobs:
7475
with:
7576
go-version: ${{ env.GO_VERSION }}
7677
cache: true
77-
- uses: golangci/golangci-lint-action@v7
78+
- name: Remove go.work (local dev only)
79+
run: rm -f go.work go.work.sum - uses: golangci/golangci-lint-action@v7
7880
with:
7981
version: v2.1.0
8082
install-mode: goinstall
@@ -123,10 +125,13 @@ jobs:
123125
with:
124126
go-version: ${{ env.GO_VERSION }}
125127
cache: true
126-
- name: govulncheck
128+
- name: Remove go.work
129+
run: rm -f go.work go.work.sum - name: govulncheck
127130
run: |
128-
go install golang.org/x/vuln/cmd/govulncheck@latest
129-
govulncheck ./...
131+
- name: Remove go.work
132+
run: rm -f go.work go.work.sum go install golang.org/x/vuln/cmd/govulncheck@latest
133+
- name: Remove go.work
134+
run: rm -f go.work go.work.sum govulncheck ./...
130135
- name: gosec (advisory)
131136
continue-on-error: true
132137
run: |

0 commit comments

Comments
 (0)