-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide instructions for linting on Windows #21911
Labels
Comments
A friendly reminder that this issue had no activity for 30 days. |
l0rd
added a commit
to l0rd/podman
that referenced
this issue
Jun 5, 2024
Add the following targets in winmake.ps1: - `installer`: builds the Windows installer - `docs`: builds the documentation HTML pages - `validatepr`: runs the Linux Makefile `.valiatepr` target using podman. - `lint`: faster validation that runs linter locally Update of `build_windows.md`: - removed every reference to the MSYS2 platform - added instructions to build the installer and linters Fix containers#21821 and containers#21911 Signed-off-by: Mario Loriedo <[email protected]>
l0rd
added a commit
to l0rd/podman
that referenced
this issue
Jun 6, 2024
Add the following targets in winmake.ps1: - `installer`: builds the Windows installer - `docs`: builds the documentation HTML pages - `validatepr`: runs the Linux Makefile `.valiatepr` target using podman. - `lint`: faster validation that runs linter locally Update of `build_windows.md`: - removed every reference to the MSYS2 platform - added instructions to build the installer and linters Fix containers#21821 and containers#21911 Signed-off-by: Mario Loriedo <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
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: