mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-05 18:24:07 +00:00
Simplify verify-cli-conventions; use new setup_env
This commit is contained in:
parent
2924b90d75
commit
2ee339b023
@ -25,16 +25,11 @@ set -o pipefail
|
||||
KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
|
||||
source "${KUBE_ROOT}/hack/lib/init.sh"
|
||||
|
||||
kube::golang::old::setup_env
|
||||
kube::golang::new::setup_env
|
||||
|
||||
BINS=(
|
||||
cmd/clicheck
|
||||
)
|
||||
make -C "${KUBE_ROOT}" WHAT="${BINS[*]}"
|
||||
hack/make-rules/build.sh ./cmd/clicheck
|
||||
|
||||
clicheck=$(kube::util::find-binary "clicheck")
|
||||
|
||||
if ! output=$($clicheck 2>&1)
|
||||
if ! output=$(clicheck 2>&1)
|
||||
then
|
||||
echo "$output"
|
||||
echo
|
||||
|
Loading…
Reference in New Issue
Block a user