Failure of golangci-lint-action with go tool Installation Due to go.mod Version Inference #1164
Closed
3 tasks done
Labels
bug
Something isn't working
Welcome
Description of the problem
When using Go 1.24.0's new feature to install golangci-lint, golangci-lint-action fails during execution. The failure is caused by an issue in the version inference mechanism that relies on the go.mod file, leading to incorrect version detection.
Steps to Reproduce:
Expected Behavior:
golangci-lint-action should accurately determine the installed golangci-lint version even when installed with Go 1.24.0's new installation approach, allowing the action to execute successfully.
Suggestion:
By revising the version inference logic in golangci-lint-action to accommodate Go 1.24.0's new installation method, the issue with incorrect version detection can be resolved. This adjustment would prevent execution failures in workflows using this Go version.
Reference Information:
Sample reproducing the issue: golangci-lint-action-124-gomod-tool-directive
Example of a failed GitHub Actions job: Failed Actions Job
Version of golangci-lint
1.64.4
Version of the GitHub Action
6.3.2
Workflow file
Golangci-lint configuration
nothing
Go version
1.24.0
Code example or link to a public repository
nothing
The text was updated successfully, but these errors were encountered: