Use go version available in target release version
Build and provide rpm of the Gitea act_runner / rpmbuild (release) Successful in 3m4s

This commit is contained in:
2026-02-21 01:16:33 +01:00
parent 3e97c0b859
commit 35ef9aaf01
2 changed files with 18 additions and 1 deletions
+6 -1
View File
@@ -35,7 +35,12 @@ Source7: %{name}-sysusers.conf
Source8: %{name}-tmpfiles.conf
Source9: act_runner-register.sh
%if 0%{?fedora} && 0%{?fedora} < 44
Patch0: go-version.patch
BuildRequires: go >= 1.25
%else
BuildRequires: go >= 1.26
%endif
BuildRequires: go-rpm-macros
BuildRequires: git-core
@@ -119,7 +124,7 @@ fi
%prep
%autosetup -p1 -C
%autosetup -p1 -C -v
%{__cp} %{SOURCE4} %{SOURCE5} .
%build
+12
View File
@@ -0,0 +1,12 @@
diff --git a/go.mod b/go.mod
index 02eaf38..b1b8a5a 100644
--- a/go.mod
+++ b/go.mod
@@ -1,6 +1,6 @@
module gitea.com/gitea/act_runner
-go 1.26.0
+go 1.25.0
require (
code.gitea.io/actions-proto-go v0.4.1