chore: add chocolatey ()

This commit is contained in:
Ludovic Fernandez 2024-04-06 17:14:27 +02:00 committed by GitHub
parent 1f46a118dc
commit 9d91e4a5a4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 52 additions and 6 deletions
docs/src/docs/welcome

View file

@ -9,7 +9,7 @@ Most installations of `golangci-lint` are performed for CI.
### GitHub Actions
We recommend using [our GitHub Action](https://github.com/golangci/golangci-lint-action) for running `golangci-lint` in CI for GitHub projects.
It's [fast and uses smart caching](https://github.com/golangci/golangci-lint-action#performance) inside
It's [fast and uses smart caching](https://github.com/golangci/golangci-lint-action#performance) inside,
and it can be much faster than the simple binary installation.
Also, the action creates GitHub annotations for found issues: you don't need to dig into build log to see found by `golangci-lint` issues:
@ -99,6 +99,14 @@ The macports installation mode is community driven, and not officially maintaine
sudo port install golangci-lint
```
### Windows
You can install a binary on Windows using [chocolatey](https://community.chocolatey.org/packages/golangci-lint):
```sh
choco install golangci-lint
```
### Install from Source
Note: such `go install`/`go get` installation aren't guaranteed to work. We recommend using binary installation.