mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 03:41:45 +00:00
Merge pull request #42043 from sttts/sttts-verify-staging-client-go-fail-dirty
Automatic merge from submit-queue hack/verify-staging-client-go.sh: fail verbosely if working dir is dirty Fail early and show verbose error message if repository is dirty.
This commit is contained in:
commit
5ccc4f2175
@ -34,6 +34,11 @@ readonly V
|
|||||||
KUBE_ROOT=$(dirname "${BASH_SOURCE}")/..
|
KUBE_ROOT=$(dirname "${BASH_SOURCE}")/..
|
||||||
cd ${KUBE_ROOT}
|
cd ${KUBE_ROOT}
|
||||||
|
|
||||||
|
if ! git diff --exit-code; then
|
||||||
|
echo "ERROR: $0 cannot be run on a dirty working directory."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
# Smoke test client-go examples
|
# Smoke test client-go examples
|
||||||
go install ./staging/src/k8s.io/client-go/examples/...
|
go install ./staging/src/k8s.io/client-go/examples/...
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user