From bafe7cde1075633085d803abf7d5faae81ca8ea9 Mon Sep 17 00:00:00 2001 From: Feruzjon Muyassarov Date: Tue, 27 Feb 2024 10:02:19 +0200 Subject: [PATCH] Add warning about vendor removal to Makefile build target Signed-off-by: Feruzjon Muyassarov --- cluster-autoscaler/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cluster-autoscaler/Makefile b/cluster-autoscaler/Makefile index fb82bb2b5ee5..60dab6b0d1ce 100644 --- a/cluster-autoscaler/Makefile +++ b/cluster-autoscaler/Makefile @@ -36,7 +36,10 @@ IMAGE=$(REGISTRY)/cluster-autoscaler$(PROVIDER) export DOCKER_CLI_EXPERIMENTAL := enabled -build: build-arch-$(GOARCH) +build: + @echo "⚠️ WARNING: The vendor directory will be removed soon. \ + Please make sure your dependencies are managed via Go modules." + @$(MAKE) build-arch-$(GOARCH) build-arch-%: clean-arch-% $(ENVVAR) GOOS=$(GOOS) GOARCH=$* go build -o cluster-autoscaler-$* ${LDFLAGS_FLAG} ${TAGS_FLAG}