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 ./...