We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a9603fb commit d2f0849Copy full SHA for d2f0849
Makefile
@@ -3,7 +3,7 @@ KEY = host_key
3
PORT = 2022
4
5
SRCS = %.go
6
-VERSION := $(shell git describe --tags --dirty --always)
+VERSION := $(shell git describe --tags --dirty --always 2> /dev/null || echo "dev")
7
LDFLAGS = LDFLAGS="-X main.Version=$(VERSION)"
8
9
SUBPACKAGES := $(shell go list ./... | grep -v /vendor/)
0 commit comments