Skip to content

Commit

Permalink
make: Silence git if no repo version found
Browse files Browse the repository at this point in the history
  • Loading branch information
wader committed Sep 18, 2021
1 parent 790198c commit 98a8bae
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
@@ -1,7 +1,7 @@
all: test

.PHONY: fq
fq: VERSION=$(shell git describe --all --long --dirty || echo nogit)
fq: VERSION=$(shell git describe --all --long --dirty 2>/dev/null || echo nogit)
fq:
go build -ldflags "-X main.version=${VERSION}" -trimpath -o fq .

Expand Down

0 comments on commit 98a8bae

Please sign in to comment.