Added version checker on startup

This commit is contained in:
Juan Font Alonso 2021-09-27 16:26:18 +02:00
parent 0bbf343348
commit 2048e9e136
5 changed files with 32 additions and 6 deletions

View file

@ -2,7 +2,7 @@
version = $(shell ./scripts/version-at-commit.sh)
build:
go build -ldflags "-s -w -X github.com/juanfont/headscale/cmd/headscale/cli.version=$(version)" cmd/headscale/headscale.go
go build -ldflags "-s -w -X github.com/juanfont/headscale/cmd/headscale/cli.Version=$(version)" cmd/headscale/headscale.go
dev: lint test build