Skip to content

Commit 6e856d9

Browse files
committed
lint: allow multiple golangci-lint
golangci-lint create a lock file in /tmp which prevents multiple invocation of golanci-lint. Our jenkins build can fail if golangci-lint is already running on the same slave. Add arg to prevent creation of that lock file. refs golangci/golangci-lint#869
1 parent 4834d35 commit 6e856d9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.pre-commit-config.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ repos:
3636
hooks:
3737
- id: golangci-lint-repo-mod
3838
exclude: '^test/vendor/*'
39+
args: ["--allow-parallel-runners"]
3940
- repo: 'https://github.com/Bahjat/pre-commit-golang.git'
4041
rev: 85c26d4d1c8a086095a057bbdf8adf56af603ce4
4142
hooks:

0 commit comments

Comments
 (0)