From 1e6de25e8c3b8c648658c592bd512e0f8cbd0523 Mon Sep 17 00:00:00 2001 From: ChiaAutomation <85647627+ChiaAutomation@users.noreply.github.com> Date: Fri, 8 Mar 2024 20:51:52 -0600 Subject: [PATCH] Update Managed Files (#143) --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 500754d..2af269e 100644 --- a/Makefile +++ b/Makefile @@ -25,8 +25,9 @@ all: fmt lint vet build .PHONY: build build: $(BIN) ; $(info $(M) building executable…) @ ## Build program binary $Q CGO_ENABLED=0 $(GO) build \ + -ldflags "-X main.gitVersion=$$(git describe --tags) -X \"main.buildTime=$$(date -u '+%Y-%m-%d %H:%M:%S %Z')\"" \ -tags release \ - -o $(BIN)/$(notdir $(basename $(MODULE)))$(binext) main.go + -o $(BIN)/$(notdir $(basename $(MODULE)))$(binext) # Tools $(BIN):