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