Skip to content

Commit

Permalink
Install GolangCI-Lint as a binary (#1145)
Browse files Browse the repository at this point in the history
Installing golangci-lint using 'go get' is discouraged in their documentation. Instead, the recommended way is used. The golangci-lint binary will be install as a binary in $GOPATH/bin.
  • Loading branch information
Jan Schlicht authored Dec 9, 2019
1 parent 0f2dbd3 commit 45d6cf5
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 167 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ test-clean:
.PHONY: lint
lint:
ifeq (, $(shell which golangci-lint))
go get github.com/golangci/golangci-lint/cmd/golangci-lint
./hack/install-golangcilint.sh
endif
golangci-lint run

Expand Down
10 changes: 9 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@ require (
github.com/docker/go-connections v0.4.0 // indirect
github.com/docker/go-units v0.4.0 // indirect
github.com/dustinkirkland/golang-petname v0.0.0-20170921220637-d3c2ba80e75e
github.com/ghodss/yaml v1.0.0 // indirect
github.com/go-logr/logr v0.1.0
github.com/gogo/protobuf v1.3.1 // indirect
github.com/golangci/golangci-lint v1.21.0
github.com/golang/groupcache v0.0.0-20190129154638-5b532d6fd5ef // indirect
github.com/google/btree v1.0.0 // indirect
github.com/google/shlex v0.0.0-20181106134648-c34317bd91bf
github.com/gophercloud/gophercloud v0.2.0 // indirect
github.com/gorilla/context v1.1.1 // indirect
Expand All @@ -24,10 +26,12 @@ require (
github.com/imdario/mergo v0.3.7 // indirect
github.com/konsorten/go-windows-terminal-sequences v1.0.2 // indirect
github.com/magiconair/properties v1.8.1
github.com/mattn/go-colorable v0.1.4 // indirect
github.com/mattn/go-isatty v0.0.10 // indirect
github.com/mattn/go-runewidth v0.0.4 // indirect
github.com/mitchellh/copystructure v1.0.0 // indirect
github.com/morikuni/aec v1.0.0 // indirect
github.com/onsi/ginkgo v1.10.1 // indirect
github.com/onsi/gomega v1.7.0
github.com/opencontainers/image-spec v1.0.1 // indirect
github.com/pmezard/go-difflib v1.0.0
Expand All @@ -37,9 +41,13 @@ require (
github.com/spf13/pflag v1.0.5
github.com/stretchr/testify v1.4.0
github.com/xlab/treeprint v0.0.0-20181112141820-a009c3971eca
go.uber.org/atomic v1.4.0 // indirect
go.uber.org/zap v1.10.0 // indirect
golang.org/x/crypto v0.0.0-20190923035154-9ee001bba392 // indirect
golang.org/x/net v0.0.0-20190923162816-aa69164e4478
golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e
golang.org/x/sys v0.0.0-20191025090151-53bf42e6b339 // indirect
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4 // indirect
golang.org/x/tools v0.0.0-20191025023517-2077df36852e // indirect
gopkg.in/yaml.v2 v2.2.4
gotest.tools v2.2.0+incompatible
Expand Down
Loading

0 comments on commit 45d6cf5

Please sign in to comment.