update golangci-lint version (#7115)

This commit is contained in:
Roberto Dip 2022-08-09 15:42:35 -03:00 committed by GitHub
parent 3a88afaf98
commit bfd98557f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 5 deletions

View file

@ -32,5 +32,8 @@ jobs:
run: |
# The following packages are needed to build Fleet Desktop on Ubuntu.
sudo apt install -y gcc libgtk-3-dev libayatana-appindicator3-dev
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.46.2
make lint-go
# Don't forget to update
# docs/Contributing/Testing-and-local-development.md when this
# version changes
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.47.3
make lint-go

View file

@ -18,8 +18,8 @@ linters:
linters-settings:
depguard:
list-type: blacklist
include-go-root: false
list-type: denylist
include-go-stdlib: false
packages-with-error-message:
- github.com/pkg/errors: "use ctxerr if a context.Context is available or stdlib errors.New / fmt.Errorf with the %w verb"

View file

@ -37,7 +37,7 @@ Check out [`/tools/osquery` directory instructions](https://github.com/fleetdm/f
You must install the [`golangci-lint`](https://golangci-lint.run/) command to run `make test[-go]` or `make lint[-go]`, using:
```
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.42.0
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.47.3
```
Make sure it is available in your `PATH`. To execute the basic unit and integration tests, run the following from the root of the repository: