move linting dependencies to hack/tools/tools.go
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
This commit is contained in:
@@ -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=" "
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user