From ecbe1d49729f8cc96f3cdd1f560e6d47f7a7e1ef Mon Sep 17 00:00:00 2001 From: Ryan Smith Date: Sat, 5 Apr 2025 14:26:10 -0700 Subject: [PATCH] Append `-dirty` or `-broken` tag to version if local changes found --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index d0710e9..f5227bb 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,7 @@ BIN_FREEBSD := $(BIN_DEFAULT)_freebsd_amd64 BIN_WINDOWS := $(BIN_DEFAULT)_windows_amd64.exe INSTALL_SCRIPT := ./scripts/install.sh 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%=%)'" GO := go CGO_ENABLED := 0