Closed
Description
gci linter is no longer fixing import order with make lint-fix
. This issue was noted in #6348. The errors from the linter are opaque making fixing import order a manual and time consuming process for maintainers - and very discouraging for all contributors.
It seems from here that the autofix was disabled in a recent version c/f golangci/golangci-lint#2604. I'm still researching why this occurred and will update with any information here.
We can either
- remove
gci
from our golangci-lint. - or downgrade to an older version, i.e. roll back ✨Bump to golangci-lint v1.45.2 #6335
Until the linter's behaviour in autofixing comes back in line with expectations. I'm in favour of doing a downgrade - gci was really useful when make lint-fix
was working.
/kind bug
[One or more /area label. See https://github.com/kubernetes-sigs/cluster-api/labels?q=area for the list of labels]