From a34817238a357a1593c2011fc6229707f4c56561 Mon Sep 17 00:00:00 2001 From: Mike Chernev Date: Wed, 3 Oct 2018 11:24:01 +0200 Subject: [PATCH] Make the golint verify script MacOS compatible --- hack/verify-golint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/verify-golint.sh b/hack/verify-golint.sh index 48a93b08b1a..dbc6e2973be 100755 --- a/hack/verify-golint.sh +++ b/hack/verify-golint.sh @@ -61,7 +61,7 @@ export IFS=$'\n' # as the prefix, however if we run it outside it returns the full path of the file # with a leading underscore. We'll need to support both scenarios for all_packages. all_packages=( - $(go list -e ./... | egrep -v "/(third_party|vendor|staging/src/k8s.io/client-go/pkg|generated|clientset_generated)" | sed -e 's|^k8s.io/kubernetes/||' -e "s|^_${KUBE_ROOT}/\?||") + $(go list -e ./... | egrep -v "/(third_party|vendor|staging/src/k8s.io/client-go/pkg|generated|clientset_generated)" | sed -e 's|^k8s.io/kubernetes/||' -e "s|^_\(${KUBE_ROOT}/\)\{0,1\}||") ) failing_packages=( $(cat $failure_file)