Thank you for creating the issue!
I couldn't find a way to install golang-ci-lint in my Windows PC. The only issue I found so far was: https://github.com/golangci/golangci-lint/issues/14
Reading the README.md I could only find Linux and MacOS installation: https://github.com/golangci/golangci-lint#install
Is there any possibility to update the README explaining how to install and run locally golangci-lint for Windows?
Thanks
Hi!
Can't you run curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b $(go env GOPATH)/bin v1.21.0 in terminal?
I'm not sure that there are curl and sh by default on Windows.
Probably, the best current way is to download binary from releases page and put it in PATH.
We can refer to hugo as example of providing installation instructions for Windows.
We can't run curl and sh in Windows. Please add a solution with chocolatey. Thanks
It works on windows if you run the install script curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b $(go env GOPATH)/bin v1.21.0 using Git Bash or the windows subsystem for linux (WSL)
Maybe this should go in the readme?
@fgagneten I think the easiest method right now is to just manually download one of the Windows archives from the releases page and extract the binary somewhere on the PATH. That said, I do think adding support for chocolatey.org or similar might make sense. Patches are welcome if someone with experience would like to add support.
It works on windows if you run the install script
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b $(go env GOPATH)/bin v1.21.0using Git Bash or the windows subsystem for linux (WSL)Maybe this should go in the readme?
this works on windows with git bash, excepted that if your user directory has space( ex: c:\users\foo bar\ ) .
you should quote the "$(go env GOPATH)/bin" in this case.
please run in git bash
Most helpful comment
this works on windows with git bash, excepted that if your user directory has space( ex: c:\users\foo bar\ ) .
you should quote the "$(go env GOPATH)/bin" in this case.