golangci-lint is using go v1.19 for gofmt linter inspite of using go v1.17 in the github action #3077
Closed
4 tasks done
Labels
duplicate
This issue or pull request already exists
Welcome
Description of the problem
In our golangci-lint github workflow, we use go
v1.17.x
. The errors pointed out by thegofmt
linter (see here) doesn't seem to get fixed when usinggofmt -s .
with the binary provided bygo v.17.13
but they do get fixed with running the binary provided bygo v1.19
.Here is our .golangci.yml config. How should I modify the config for it to use the
go fmt
linter corresponding to the go version that I'm using in the CI?Version of golangci-lint
Configuration file
Go environment
Verbose output of running
Code example or link to a public repository
// add your code here
The text was updated successfully, but these errors were encountered: