From 7f226f55a34a82f4b4a9b4f95684dfefad64674e Mon Sep 17 00:00:00 2001 From: Feny Mehta Date: Fri, 28 Jun 2024 10:38:07 +0530 Subject: [PATCH] KUBESAW-124: Makefile target for dependency validations (#410) * KUBESAW-124: Makefile target for dependency validations Signed-off-by: Feny Mehta * adding build Signed-off-by: Feny Mehta --------- Signed-off-by: Feny Mehta Co-authored-by: Francisc Munteanu --- make/go.mk | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/make/go.mk b/make/go.mk index af60344d..ccfd807a 100644 --- a/make/go.mk +++ b/make/go.mk @@ -15,4 +15,16 @@ build: $(shell find . -path ./vendor -prune -o -name '*.go' -print) .PHONY: vendor vendor: - $(Q)go mod vendor \ No newline at end of file + $(Q)go mod vendor + +.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 ./... \ No newline at end of file