Skip to content

Commit

Permalink
Re-attempt to solve linter issue with new golangci-lint image
Browse files Browse the repository at this point in the history
  • Loading branch information
tpaschalis committed Jan 17, 2022
1 parent 91808cf commit c0f187c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .drone/drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ trigger:

steps:
- name: lint
image: golangci/golangci-lint:v1.42
image: golangci/golangci-lint:v1.43
commands:
- apt-get update -y && apt-get install -y libsystemd-dev
- make lint
Expand Down Expand Up @@ -249,6 +249,6 @@ get:
name: pat
---
kind: signature
hmac: 212c4e0ae034aa6a5cc181d56f8c0663b2ad52d028fe9a9132ee318a729797ce
hmac: 134e23b902857b77e9b594aa0a17e53b72ee33122e4b02d0a0cf1802ea403aab

...
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,4 @@ issues:
# EXC0001 errcheck: Almost all programs ignore errors on these functions
# and in most cases it's ok. This is copied from the golangci-lint defaults
# mut modified to include go-kit logging.
- Error return value of .((os\.)?std(out|err)\..*|.*Close|.*Flush|os\.Remove(All)?|.*print(f|ln)?|os\.(Un)?Setenv|.*\.Log). is not checked
- Error return value of .((os\.)?std(out|err)\..*|.*Close|.*Flush|os\.Remove(All)?|.*print(f|ln)?|os\.(Un)?Setenv|.*\.Log). is not checked (errcheck)
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ require (
github.com/docker/go-connections v0.4.0
github.com/drone/envsubst/v2 v2.0.0-20210730161058-179042472c46
github.com/fatih/structs v1.1.0
github.com/go-kit/kit v0.12.0
github.com/go-kit/log v0.2.0
github.com/go-logfmt/logfmt v0.5.1
github.com/go-logr/logr v1.0.0
Expand Down Expand Up @@ -165,6 +164,7 @@ require (
github.com/felixge/httpsnoop v1.0.2 // indirect
github.com/fsnotify/fsnotify v1.5.1 // indirect
github.com/fvbommel/sortorder v1.0.2 // indirect
github.com/go-kit/kit v0.12.0 // indirect
github.com/go-ole/go-ole v1.2.6 // indirect
github.com/go-resty/resty/v2 v2.1.1-0.20191201195748-d7b97669fe48 // indirect
github.com/go-stack/stack v1.8.0 // indirect
Expand Down
2 changes: 1 addition & 1 deletion pkg/integrations/cadvisor/cadvisor.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"strings"
"time"

"github.com/go-kit/kit/log"
"github.com/go-kit/log"
"github.com/google/cadvisor/cache/memory"
"github.com/google/cadvisor/container"
v2 "github.com/google/cadvisor/info/v2"
Expand Down

0 comments on commit c0f187c

Please sign in to comment.