Fix hack/verify-staging-imports.sh on Mac

pull/6/head
Dr. Stefan Schimanski 2017-01-16 16:20:40 +01:00
parent 7b471136ba
commit 1c4849c403
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ kube::golang::setup_env
for dep in $(ls -1 ${KUBE_ROOT}/staging/src/k8s.io/); do for dep in $(ls -1 ${KUBE_ROOT}/staging/src/k8s.io/); do
if go list -f {{.Deps}} ./vendor/k8s.io/${dep}/... | sed 's/ /\n/g' - | grep k8s.io/kubernetes | grep -v 'k8s.io/kubernetes/vendor' | LC_ALL=C sort -u | grep -e "."; then if go list -f {{.Deps}} ./vendor/k8s.io/${dep}/... | tr " " '\n' | grep k8s.io/kubernetes | grep -v 'k8s.io/kubernetes/vendor' | LC_ALL=C sort -u | grep -e "."; then
echo "${dep} has a cyclical dependency" echo "${dep} has a cyclical dependency"
exit 1 exit 1
fi fi