Provide instructions for linting on Windows #21911
Labels
kind/feature
Categorizes issue or PR as related to a new feature.
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
windows
issue/bug on Windows
Feature request description
make lint
orwinmake lint
are both failing on windows currently so contributors don't know how to run the linter against the local changes before pushing a commit.Suggest potential solution
It's possible to install golangci-lint on Windows (
winget add -e GolangCI.golangci-lint
) but running it complains becausediff
is not found. To getdiff
we can then include Git for windows bin folder toPATH
($Env:Path += ";C:\Program Files\Git\usr\bin"
) but then some new errors are thrown...it will eventually work but it needs some more time.Have you considered any alternatives?
We could provide instructions (or a new make target) to execute
make lint
in a container usingpodman run
.Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: