Closed YakDriver closed 3 weeks ago
Unfortunately, upgrading golangci-lint to v1.60.3 did not fix the issue and I still get:
Killed
Error: golangci-lint exit with code 137
Ran golangci-lint in 296885ms
This is confusing because locally I had updated golangci-lint to v1.60.3 and it ran fine. However, in the GitHub workflow, we rely on go.mod
for the .ci module and it was still set to v1.59.1. But, even after upgrading it to v1.60.3, which supports Go v1.23.0, I get the same unhelpful message, "Killed."
Update: Solution found!
Fixing this required two pieces:
GOGC
in the workflow file -- too high and I get "Killed", too low and it runs really slow - name: golangci-lint
uses: golangci/golangci-lint-action@aaa42aa0628b4ae2578232a66b541047968fac86 # v6.1.0
with:
version: "1.60.3"
args: --config .ci/.golangci3.yml
env:
GOGC: "100" # default
Hi.
Same here. Its not only the action, I also get the memory issues locally on my computer. My golangci-lint is 1.60.3 compiled with go 1.23.
golangci-lint has version v1.60.3 built with go1.23.0 from (unknown, modified: ?, mod sum: "h1:l38A5de24ZeDlcFF+EB7m3W5joPD99/hS5SIHJPyZa0=") on (unknown)
Is there a solution that I'm missing?
Thanks!
You are on the Github Action repo.
If you have a reproducible context, please open an issue on the golangci-lint repo.
Welcome
Description of the problem
Relates #552
How important is it that the Go version used to run golangci-lint is the same as the Go version used by the project?
When attempting to upgrade to Go v1.23.0:
Version of golangci-lint
v1.59.1
Version of the GitHub Action
v6.1.0
Workflow file
Golangci-lint configuration
Go version
v1.23.0
Code example or link to a public repository