From 2c0f51422e6985495b9d995c36b41d81f3d9ebdd Mon Sep 17 00:00:00 2001 From: Hein Date: Wed, 8 Apr 2026 14:51:57 +0200 Subject: [PATCH] chore(release): update Go version and build requirements * Change Go version to 1.23.0 in go.mod * Update golang build requirement to >= 1.23 in unitdore.spec * Adjust packaging commands for Arch and RPM --- .gitea/workflows/release.yml | 9 ++++++--- go.mod | 2 +- pkg/centos/unitdore.spec | 2 +- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 17a5f17..c8a7803 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -127,7 +127,7 @@ jobs: pacman -Syu --noconfirm base-devel go && useradd -m builder && chown -R builder:builder /build && - runuser -u builder -- makepkg --noconfirm --noprogressbar && + runuser -u builder -- bash -c 'cd /build && makepkg --noconfirm --noprogressbar' && cp /build/*.pkg.tar.zst /out/ " @@ -232,11 +232,14 @@ jobs: -w /workspace \ rockylinux:9 \ bash -c " - dnf install -y rpm-build golang git && + dnf install -y rpm-build git curl && + GO_VER=\$(grep '^go ' /workspace/go.mod | awk '{print \$2}') && + curl -fsSL https://go.dev/dl/go\${GO_VER}.linux-amd64.tar.gz | tar -C /usr/local -xz && + export PATH=\$PATH:/usr/local/go/bin && mkdir -p ~/rpmbuild/{BUILD,BUILDROOT,RPMS,SOURCES,SPECS,SRPMS} && cp unitdore-${PKGVER}.tar.gz ~/rpmbuild/SOURCES/ && cp pkg/centos/unitdore.spec ~/rpmbuild/SPECS/ && - rpmbuild -ba ~/rpmbuild/SPECS/unitdore.spec && + rpmbuild --nodeps -ba ~/rpmbuild/SPECS/unitdore.spec && find ~/rpmbuild/RPMS -name '*.rpm' -exec cp {} /out/ \; " diff --git a/go.mod b/go.mod index 4b9e10c..1f93ff7 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/warkanum/unitdore -go 1.26.1 +go 1.23.0 require ( github.com/inconshreveable/mousetrap v1.1.0 // indirect diff --git a/pkg/centos/unitdore.spec b/pkg/centos/unitdore.spec index 33ef76d..beda9a9 100644 --- a/pkg/centos/unitdore.spec +++ b/pkg/centos/unitdore.spec @@ -7,7 +7,7 @@ License: MIT URL: https://warky.dev Source0: %{name}-%{version}.tar.gz -BuildRequires: golang >= 1.21 +BuildRequires: golang >= 1.23 Requires: systemd %description