From 27ad7cb6f0370f3ac64999415738a25e824a0b48 Mon Sep 17 00:00:00 2001 From: Simon de Vlieger Date: Mon, 21 Jul 2025 09:42:58 +0200 Subject: [PATCH] chore: set specfile version at build In [1] I changed the name of the variable used to deduce the version built. I forgot to update this in the specfile. Let's correct that. [1]: https://github.com/osbuild/image-builder-cli/pull/230 Signed-off-by: Simon de Vlieger --- image-builder.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/image-builder.spec b/image-builder.spec index 2290101..dd06736 100644 --- a/image-builder.spec +++ b/image-builder.spec @@ -85,7 +85,7 @@ export GOFLAGS+=" -mod=vendor" GOTAGS="exclude_graphdriver_btrfs" %endif -export LDFLAGS="${LDFLAGS} -X 'main.BuildVersion=%{version}'" +export LDFLAGS="${LDFLAGS} -X 'main.version=%{version}'" %gobuild ${GOTAGS:+-tags=$GOTAGS} -o %{gobuilddir}/bin/image-builder %{goipath}/cmd/image-builder %install