From 09261d2b52fa739bb6321c866566223f11061201 Mon Sep 17 00:00:00 2001 From: Jeff Halter <868228+jhalter@users.noreply.github.com> Date: Sat, 27 Jul 2024 15:40:57 -0700 Subject: Fix missing version in Docker and Makefile build --- Makefile | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 2832baa..54a8631 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,2 @@ server: - go build -o mobius-hotline-server cmd/mobius-hotline-server/main.go - -client: - go build -o mobius-hotline-client cmd/mobius-hotline-client/main.go \ No newline at end of file + go build -ldflags "-X main.version=$$(git describe --exact-match --tags || echo "dev" ) -X main.commit=$$(git rev-parse --short HEAD)" -o mobius-hotline-server cmd/mobius-hotline-server/main.go -- cgit