From 0a3128a497b982904c7d868114db5f5f4236183f Mon Sep 17 00:00:00 2001 From: Feny Mehta Date: Thu, 27 Jun 2024 14:58:25 +0530 Subject: [PATCH] KUBESAW-124: Makefile target for dependency validations (#440) * KUBESAW-124: Makefile target for dependency validations Signed-off-by: Feny Mehta * lint-go-code Signed-off-by: Feny Mehta * renaming build.mk to go.mk and adding verify comand to it Signed-off-by: Feny Mehta --------- Signed-off-by: Feny Mehta --- make/{build.mk => go.mk} | 13 +++++++++++++ 1 file changed, 13 insertions(+) rename make/{build.mk => go.mk} (85%) diff --git a/make/build.mk b/make/go.mk similarity index 85% rename from make/build.mk rename to make/go.mk index f9350ed3..b7265add 100644 --- a/make/build.mk +++ b/make/go.mk @@ -42,3 +42,16 @@ ifneq ($(shell git status -s | grep deploy/registration-service.yaml),) @echo "## Run 'make copy-reg-service-template' and send PR ##" @echo "#########################################################################" endif + +.PHONY: verify-dependencies +## Runs commands to verify after the updated dependecies of toolchain-common/API(go mod replace), if the repo needs any changes to be made +verify-dependencies: tidy vet build test lint-go-code + +.PHONY: tidy +tidy: + go mod tidy + +.PHONY: vet +vet: + go vet ./... +