From dafe35a3592ab1753c8078d9ce28beff354dcdcd Mon Sep 17 00:00:00 2001 From: Feny Mehta Date: Tue, 1 Oct 2024 16:43:03 +0530 Subject: [PATCH] KUBESAW-192: Introduce a make command for pre-requisite of verify-replace script (#429) * KUBESAW-192: make-generate required before replace Signed-off-by: Feny Mehta * common logic Signed-off-by: Feny Mehta * Rc Signed-off-by: Feny Mehta * rc-1 Signed-off-by: Feny Mehta * rc Signed-off-by: Feny Mehta * extra removal Signed-off-by: Feny Mehta --------- 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 3dbc8d9e..e54506d0 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 toolchain common version in dependent repos" go mod edit -replace github.com/codeready-toolchain/toolchain-common=${C_PATH} make verify-dependencies || ERRORLIST+="($(basename ${repo}))"