-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Maybe inline diff tool into golangci-lint #362
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
Comments
That would be nice to have for Windows. However, most Windows developers will have Git installed and adding the "[DRIVE]:\program files\git\usr\bin" to your path fixes the problem since Git bundles a version of diff. |
I ran into this while trying to fix the Git Diff problem, which was after a few other problems I had with Gitlab CI / CD pipelines. I wrote some Powershell scripts someone can use to automate this process: installGolangciLint.ps1
installChoco.ps1
installGitWithChoco.ps1
I then run the equivalent of The full .gitlab-ci.yml file (Ctrl+F for "poly_demo_lint_windows" which has the right Job) can be found here: I hope this helps someone else or better yet golangci-lint offers a better installation process (like using chocolatey) for Windows users. My use-case for running golangci-lint on Windows is that my Go code manipulates paths, and therefore I want to run my CI/CD pipelines on Windows. I also want to support Windows servers for deployment of my app, and this 'proves' the app works the same there as on Linux. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Got a few issues that "diff" isn't installed, especially on windows. We can inline it's code into golangci-lint
The text was updated successfully, but these errors were encountered: