mirror of
https://github.com/r-smith/deceptifeed.git
synced 2025-11-01 20:53:54 +00:00
Append -dirty or -broken tag to version if local changes found
This commit is contained in:
2
Makefile
2
Makefile
@@ -8,7 +8,7 @@ BIN_FREEBSD := $(BIN_DEFAULT)_freebsd_amd64
|
|||||||
BIN_WINDOWS := $(BIN_DEFAULT)_windows_amd64.exe
|
BIN_WINDOWS := $(BIN_DEFAULT)_windows_amd64.exe
|
||||||
INSTALL_SCRIPT := ./scripts/install.sh
|
INSTALL_SCRIPT := ./scripts/install.sh
|
||||||
UNINSTALL_SCRIPT := ./scripts/install.sh --uninstall
|
UNINSTALL_SCRIPT := ./scripts/install.sh --uninstall
|
||||||
VERSION := $(shell git describe --tags)
|
VERSION := $(shell git describe --tags --dirty --broken)
|
||||||
BUILD_OPTIONS := -trimpath -ldflags="-s -w -X 'github.com/r-smith/deceptifeed/internal/config.Version=$(VERSION:v%=%)'"
|
BUILD_OPTIONS := -trimpath -ldflags="-s -w -X 'github.com/r-smith/deceptifeed/internal/config.Version=$(VERSION:v%=%)'"
|
||||||
GO := go
|
GO := go
|
||||||
CGO_ENABLED := 0
|
CGO_ENABLED := 0
|
||||||
|
|||||||
Reference in New Issue
Block a user