17

golangci-lint timeout

 2 years ago
source link: https://ioridy.github.io/2021/01/22/golangci-lint-timeout/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

golangci-lint timeout

2021-01-22

在gitlab的ci里面配置了golangci-lint检查,但是偶尔总出现level=error msg="Timeout exceeded: try increasing it by passing --timeout option"这种错误, 重新执行一次就正常了,虽然几率小,但还是会造成困扰,于是找了下问题,分享下解决方案。

golangci-lint timeout

golangci-lint运行时,加上timeout的参数设置(默认是1分钟)

golangci-lint run ./... --timeout=10m

详细的信息可以通过命令行的help查看:golangci-lint run -h

golangci-lint run help


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK