Use go version available in target release version
Build and provide rpm of the Gitea act_runner / rpmbuild (release) Successful in 3m4s
Build and provide rpm of the Gitea act_runner / rpmbuild (release) Successful in 3m4s
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user