Skip to content

Commit

Permalink
Update Makefile
Browse files Browse the repository at this point in the history
Add go get in makefile because we removed the vendor folder and need to download the dependencies first.
  • Loading branch information
boynux committed Jun 24, 2024
1 parent 268f7b3 commit ac100a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 ./...
Expand Down

0 comments on commit ac100a7

Please sign in to comment.