From 2cfe043f5eaf9e8ac79dcb1e640649f9fba2d715 Mon Sep 17 00:00:00 2001 From: "Brian C. Lane" Date: Fri, 28 Mar 2025 14:35:46 -0700 Subject: [PATCH] main: Add a --version flag to show the build version This embeds the version at build time and displays it when passed the --version flag. --- Makefile | 2 +- cmd/image-builder/main.go | 6 ++++-- image-builder.spec | 1 + 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index ca48e59..404dc3f 100644 --- a/Makefile +++ b/Makefile @@ -98,7 +98,7 @@ $(BUILDDIR)/%/: .PHONY: build build: $(BUILDDIR)/bin/ ## build the binary from source - go build -o $