From 6b37a1f82e243de1a9f768919dd7915c1546c3df Mon Sep 17 00:00:00 2001 From: Lennart Espe <3391295+lnsp@users.noreply.github.com> Date: Thu, 25 Jan 2024 22:49:54 +0100 Subject: [PATCH] Write indev version to binary on make. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 94a173b..a4b9b6b 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,7 @@ all: build build: mkdir -p bin/ - $(GOBUILD) -o $(BINARY_NAME) -v + $(GOBUILD) -ldflags "-X valar/cli/cmd.version=indev" -o $(BINARY_NAME) -v test: $(GOTEST) -v ./...