17
golangci-lint timeout
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.
golangci-lint timeout
在gitlab的ci里面配置了golangci-lint检查,但是偶尔总出现level=error msg="Timeout exceeded: try increasing it by passing --timeout option"
这种错误, 重新执行一次就正常了,虽然几率小,但还是会造成困扰,于是找了下问题,分享下解决方案。
在golangci-lint运行时,加上timeout的参数设置(默认是1分钟)
golangci-lint run ./... --timeout=10m
详细的信息可以通过命令行的help查看:golangci-lint run -h
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK