Skip to content

Commit

Permalink
KUBESAW-192: Introduce a make command for pre-requisite of verify-rep…
Browse files Browse the repository at this point in the history
…lace script (#429)

* KUBESAW-192: make-generate required before replace

Signed-off-by: Feny Mehta <[email protected]>

* common logic

Signed-off-by: Feny Mehta <[email protected]>

* Rc

Signed-off-by: Feny Mehta <[email protected]>

* rc-1

Signed-off-by: Feny Mehta <[email protected]>

* rc

Signed-off-by: Feny Mehta <[email protected]>

* extra removal

Signed-off-by: Feny Mehta <[email protected]>

---------

Signed-off-by: Feny Mehta <[email protected]>
  • Loading branch information
fbm3307 authored Oct 1, 2024
1 parent 585d209 commit dafe35a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/verify-replace.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}))"
Expand Down

0 comments on commit dafe35a

Please sign in to comment.