@@ -11,15 +11,15 @@ help: ## display this help
11
11
UNAME_S := $(shell uname -s)
12
12
ifeq ($(UNAME_S ) ,Linux)
13
13
SHASUM := sha256sum -c
14
- KUBECTL_URL := https://storage.googleapis.com/kubernetes-release/release/v1.13.3 /bin/linux/amd64/kubectl
15
- KUBECTL_HASH := f3be209a48394e0e649b30ea376ce5093205fd6769c12e62c7ab39a0827c26fb
14
+ KUBECTL_URL := https://storage.googleapis.com/kubernetes-release/release/v1.15.0 /bin/linux/amd64/kubectl
15
+ KUBECTL_HASH := ecec7fe4ffa03018ff00f14e228442af5c2284e57771e4916b977c20ba4e5b39
16
16
GOLANGCILINT_URL := https://github.com/golangci/golangci-lint/releases/download/v1.15.0/golangci-lint-1.15.0-linux-amd64.tar.gz
17
17
GOLANGCILINT_HASH := f37f4a15eb309578b0546703da5ea96bc5bd472f45f204338051aaca6fbbfc5b
18
18
endif
19
19
ifeq ($(UNAME_S ) ,Darwin)
20
20
SHASUM := shasum -a 256 -c
21
- KUBECTL_URL := https://storage.googleapis.com/kubernetes-release/release/v1.13.3 /bin/darwin/amd64/kubectl
22
- KUBECTL_HASH := 2ff06345a02636f1e6934f19dbc55452b587e06b2828c775dcdb29229c8da40f
21
+ KUBECTL_URL := https://storage.googleapis.com/kubernetes-release/release/v1.15.0 /bin/darwin/amd64/kubectl
22
+ KUBECTL_HASH := 63f1ace419edffa1f5ebb64a6c63597afd48f8d94a61d4fb44e820139adbbe54
23
23
GOLANGCILINT_URL := https://github.com/golangci/golangci-lint/releases/download/v1.15.0/golangci-lint-1.15.0-darwin-amd64.tar.gz
24
24
GOLANGCILINT_HASH := 083941efa692bfe3c29ba709964e9fe5896889316d51813e523157c96c3153e0
25
25
endif
@@ -63,7 +63,9 @@ go_fmt:
63
63
go_vet :
64
64
go vet $$(go list ./pkg/... ./cmd/... )
65
65
66
- # We have to make sure we omit ./hack/tools
66
+ # We vendor packages using ./hack/tools with go modules for building binaries.
67
+ # These files will fail linting since they use '_' importing with no usage so
68
+ # must be ommited.
67
69
go_lint : $(BINDIR ) /golangci-lint # # lint golang code for problems
68
70
go list -f ' {{.Dir}}' ./... | fgrep -v hack/tools | xargs realpath --relative-to=. | xargs $(BINDIR ) /golangci-lint run
69
71
0 commit comments