Skip to content

Commit

Permalink
KUBESAW-129: Makefile target to checck compatibility of local version…
Browse files Browse the repository at this point in the history
… with other repos

Signed-off-by: Feny Mehta <[email protected]>
  • Loading branch information
fbm3307 committed Jul 19, 2024
1 parent 8604fe4 commit 855c3e9
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion make/go.mk
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,18 @@ tidy:

.PHONY: vet
vet:
go vet ./...
go vet ./...


REPO_PATH = ""

.PHONY: replace
replace:
$(eval C_PATH = $(PWD))\
$(foreach repo,host-operator member-operator toolchain-e2e registration-service ,\
$(eval REPO_PATH = /tmp/$(repo)) \
rm -rf ${REPO_PATH}; \
git clone https://github.com/codeready-toolchain/$(repo).git ${REPO_PATH}; \
cd ${REPO_PATH}; \
go mod edit -replace github.com/codeready-toolchain/toolchain-common=${C_PATH}; \
)

0 comments on commit 855c3e9

Please sign in to comment.