move linting dependencies to hack/tools/tools.go

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
This commit is contained in:
Davanum Srinivas
2020-04-18 12:41:34 -04:00
parent 12146cb4df
commit f981628ce8
281 changed files with 75 additions and 78297 deletions

View File

@@ -43,8 +43,11 @@ export PATH=${GOPATH}/bin:${PWD}/third_party/etcd:/usr/local/go/bin:${PATH}
# As individual scripts make use of go modules, they can explicitly set GO111MODULE=on
export GO111MODULE=off
go install k8s.io/kubernetes/vendor/github.com/cespare/prettybench
go install k8s.io/kubernetes/vendor/gotest.tools/gotestsum
# Install tools we need
pushd "${KUBE_ROOT}/hack/tools" >/dev/null
GO111MODULE=on go install github.com/cespare/prettybench
GO111MODULE=on go install gotest.tools/gotestsum
popd >/dev/null
# Disable the Go race detector.
export KUBE_RACE=" "

View File

@@ -42,7 +42,10 @@ export PATH=${GOPATH}/bin:${PWD}/third_party/etcd:/usr/local/go/bin:${PATH}
# As individual scripts make use of go modules, they can explicitly set GO111MODULE=on
export GO111MODULE=off
go install k8s.io/kubernetes/vendor/gotest.tools/gotestsum
# Install tools we need
pushd "./hack/tools" >/dev/null
GO111MODULE=on go install gotest.tools/gotestsum
popd >/dev/null
# Enable the Go race detector.
export KUBE_RACE=-race