Skip to content

Commit 6607943

Browse files
committed
ci: fix golangci-lint error
golangci/golangci-lint#825 (comment)
1 parent af21b19 commit 6607943

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.gitea/workflows/lint.yaml

+7-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Lint
22
on:
33
push:
44
branches:
5-
- '**'
5+
- "**"
66
workflow_call:
77
jobs:
88
golangci:
@@ -14,8 +14,12 @@ jobs:
1414
with:
1515
go-version: stable
1616
token: ${{ secrets.GH_TOKEN }}
17-
- name: use mirror
18-
run: go env -w GOPROXY=https://goproxy.cn,direct
17+
# - name: use mirror
18+
# run: go env -w GOPROXY=https://goproxy.cn,direct
19+
- name: tidy dependencies
20+
run: |
21+
golangci-lint cache clean && go clean -modcache -cache -i
22+
go mod tidy && go mod vendor
1923
- name: golangci-lint
2024
uses: golangci/golangci-lint-action@v6
2125
with:

0 commit comments

Comments
 (0)