@@ -32,7 +32,6 @@ RPM_VERSION ?= $(DEB_VERSION)
32
32
RPM_REVISION ?= 0
33
33
34
34
# used by hack/jenkins/release_build_and_upload.sh and KVM_BUILD_IMAGE, see also BUILD_IMAGE below
35
- # update this only by running `make update-golang-version`
36
35
GO_VERSION ?= 1.16.7
37
36
38
37
# replace "x.y.0" => "x.y". kube-cross and golang.org/dl use different formats for x.y.0 go versions
@@ -67,17 +66,16 @@ MINIKUBE_UPLOAD_LOCATION := gs://${MINIKUBE_BUCKET}
67
66
MINIKUBE_RELEASES_URL =https://github.com/kubernetes/minikube/releases/download
68
67
69
68
KERNEL_VERSION ?= 4.19.182
70
- # latest from https://github.com/golangci/golangci-lint/releases
71
- # update this only by running `make update-golint-version`
72
- GOLINT_VERSION ?= v1.41.1
69
+ # latest from https://github.com/golangci/golangci-lint/releases
70
+ GOLINT_VERSION ?= v1.39.0
73
71
# Limit number of default jobs, to avoid the CI builds running out of memory
74
72
GOLINT_JOBS ?= 4
75
73
# see https://github.com/golangci/golangci-lint#memory-usage-of-golangci-lint
76
74
GOLINT_GOGC ?= 100
77
75
# options for lint (golangci-lint)
78
76
GOLINT_OPTIONS = --timeout 7m \
79
77
--build-tags "${MINIKUBE_INTEGRATION_BUILD_TAGS}" \
80
- --enable gofmt,goimports,gocritic,golint ,gocyclo,misspell,nakedret,stylecheck,unconvert,unparam,dogsled \
78
+ --enable gofmt,goimports,gocritic,revive ,gocyclo,misspell,nakedret,stylecheck,unconvert,unparam,dogsled \
81
79
--exclude 'variable on range scope.*in function literal|ifElseChain'
82
80
83
81
export GO111MODULE := on
@@ -975,12 +973,6 @@ update-kubernetes-version:
975
973
(cd hack/update/kubernetes_version && \
976
974
go run update_kubernetes_version.go)
977
975
978
- .PHONY : update-golint-version
979
- update-golint-version :
980
- (cd hack/update/golint_version && \
981
- go run update_golint_version.go)
982
-
983
-
984
976
.PHONY : update-kubernetes-version-pr
985
977
update-kubernetes-version-pr :
986
978
ifndef GITHUB_TOKEN
0 commit comments