From ac100a7145a1996291f8de0ce8e33ef38c99d943 Mon Sep 17 00:00:00 2001 From: Mohamad Arab Date: Mon, 24 Jun 2024 21:15:17 +0200 Subject: [PATCH] Update Makefile Add go get in makefile because we removed the vendor folder and need to download the dependencies first. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index eed687b..e612c07 100644 --- a/Makefile +++ b/Makefile @@ -13,7 +13,7 @@ LDFLAGS = -extldflags "-s -w -static" \ -X github.com/prometheus/common/version.Branch=$(BRANCH) $(EXE): $(SRC) - CGO_ENABLED=0 GOOS=linux go build -a -ldflags '$(LDFLAGS)' -o $(EXE) . + CGO_ENABLED=0 GOOS=linux go get && go build -a -ldflags '$(LDFLAGS)' -o $(EXE) . fmt: go fmt ./...