You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, I understand that the GitHub action repository is not the repository of golangci-lint itself.
Yes, I've searched similar issues on GitHub and didn't find any.
Yes, I've included all information below (version, config, etc).
Description of the problem
Example configuration provided in the README.md has default Go environment variables set, thus GO111MODULE is turned on at this point. Using this, execution time takes so long on Github Actions in comparison to the local run. With the basic list of linters (from golangci-lint.run docs):
errcheck
gosimple
govet
ineffassign
staticcheck
unused
local execution: 20s
github actions execution with workflow file below: over 5 minutes
My fix to get close to the local execution time is to simply pass env: GO111MODULE=off.
Now the Github Actions execution takes about 40s, so it's drastically better than before.
My question is - what causes this particular issue and how does my fix "resolve" the issue?
It would be nice to know what to do because documentation says nothing about turning off the go modules.
I'm looking forward to get some explanation, this topic is really interesting and I have no clue what happens.
Welcome
Description of the problem
Example configuration provided in the README.md has default Go environment variables set, thus GO111MODULE is turned on at this point. Using this, execution time takes so long on Github Actions in comparison to the local run. With the basic list of linters (from golangci-lint.run docs):
local execution: 20s
github actions execution with workflow file below: over 5 minutes
My fix to get close to the local execution time is to simply pass env: GO111MODULE=off.
Now the Github Actions execution takes about 40s, so it's drastically better than before.
My question is - what causes this particular issue and how does my fix "resolve" the issue?
It would be nice to know what to do because documentation says nothing about turning off the go modules.
I'm looking forward to get some explanation, this topic is really interesting and I have no clue what happens.
Version of golangci-lint
1.54
Version of the GitHub Action
4
Workflow file
Go version
1.21
Code example or link to a public repository
// add your code here
The text was updated successfully, but these errors were encountered: