From d8ace518652c1612a9bd95a44dfb503def506607 Mon Sep 17 00:00:00 2001 From: Feny Mehta Date: Tue, 31 Dec 2024 14:08:22 +0530 Subject: [PATCH] KUBESAW-192: Introduce a make command for pre-requisite of verify-replace script (#453) Signed-off-by: Feny Mehta --- scripts/verify-replace.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/verify-replace.sh b/scripts/verify-replace.sh index 12aae483..1df85273 100755 --- a/scripts/verify-replace.sh +++ b/scripts/verify-replace.sh @@ -20,6 +20,10 @@ do git clone --depth=1 ${repo} ${repo_path} echo "Repo cloned successfully" cd ${repo_path} + if ! make pre-verify; then + ERRORLIST+="($(basename ${repo}))" + continue + fi echo "Initiating 'go mod replace' of current api version in dependent repos" go mod edit -replace github.com/codeready-toolchain/api=${C_PATH} make verify-dependencies || ERRORLIST+="($(basename ${repo}))"