From e5d6ad136e2413ec732cc9f8be524a1018000a54 Mon Sep 17 00:00:00 2001 From: paulfantom Date: Wed, 27 Mar 2019 14:01:39 +0100 Subject: [PATCH] verify staleness of vendored cluster-api-actuator-pkg --- Makefile | 6 +++++- hack/verify-actuator-pkg.sh | 13 +++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100755 hack/verify-actuator-pkg.sh diff --git a/Makefile b/Makefile index 0baf001545..41154052d4 100644 --- a/Makefile +++ b/Makefile @@ -74,7 +74,11 @@ push: docker push "$(IMAGE):$(MUTABLE_TAG)" .PHONY: check -check: fmt vet lint test ## Check your code +check: fmt vet lint test check-pkg ## Check your code + +.PHONY: check-pkg +check-pkg: + ./hack/verify-actuator-pkg.sh .PHONY: unit unit: # Run unit test diff --git a/hack/verify-actuator-pkg.sh b/hack/verify-actuator-pkg.sh new file mode 100755 index 0000000000..d02e70cef4 --- /dev/null +++ b/hack/verify-actuator-pkg.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +set -e + +if ! command -v dep 1>/dev/null 2>&1; then + curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh +fi + +if dep check | grep -q cluster-api-actuator-pkg; then + exit 1 +fi +dep ensure -update github.com/openshift/cluster-api-actuator-pkg +git diff --exit-code