mirror of
https://github.com/fleetdm/fleet
synced 2026-04-21 13:37:30 +00:00
update golangci-lint version (#7115)
This commit is contained in:
parent
3a88afaf98
commit
bfd98557f9
3 changed files with 8 additions and 5 deletions
7
.github/workflows/golangci-lint.yml
vendored
7
.github/workflows/golangci-lint.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue