diff options
| author | Jeff Halter <868228+jhalter@users.noreply.github.com> | 2024-07-27 15:40:57 -0700 |
|---|---|---|
| committer | Jeff Halter <868228+jhalter@users.noreply.github.com> | 2024-07-27 15:40:57 -0700 |
| commit | 09261d2b52fa739bb6321c866566223f11061201 (patch) | |
| tree | 5f59ad0b0855595e3c4acc80cdd7a1291349f53f /Makefile | |
| parent | 117c2040b807dfd3cc578e8b5ba07ce504b102fe (diff) | |
Fix missing version in Docker and Makefile build
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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 |