mirror of https://github.com/k3s-io/k3s
always use golint from vendor
parent
f2604ddc62
commit
6b7ccc9aaa
|
@ -23,15 +23,15 @@ source "${KUBE_ROOT}/hack/lib/init.sh"
|
||||||
|
|
||||||
kube::golang::verify_go_version
|
kube::golang::verify_go_version
|
||||||
|
|
||||||
if ! which golint > /dev/null; then
|
|
||||||
# Ensure that we find the binaries we build before anything else.
|
|
||||||
export GOBIN="${KUBE_OUTPUT_BINPATH}"
|
|
||||||
PATH="${GOBIN}:${PATH}"
|
|
||||||
|
|
||||||
# Install golint from vendor
|
# Ensure that we find the binaries we build before anything else.
|
||||||
echo 'Can not find golint, installing from vendor'
|
export GOBIN="${KUBE_OUTPUT_BINPATH}"
|
||||||
go install k8s.io/kubernetes/vendor/golang.org/x/lint/golint
|
PATH="${GOBIN}:${PATH}"
|
||||||
fi
|
|
||||||
|
# Install golint from vendor
|
||||||
|
echo 'installing golint from vendor'
|
||||||
|
go install k8s.io/kubernetes/vendor/golang.org/x/lint/golint
|
||||||
|
|
||||||
|
|
||||||
cd "${KUBE_ROOT}"
|
cd "${KUBE_ROOT}"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue