Skip to content

Commit eba8c4e

Browse files
authored
Merge pull request #783 from cbosdo/ubuntu-fix
Fix Ubuntu builds before 26.04
2 parents 570ae4b + 44eaa5f commit eba8c4e

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

uyuni-tools.spec

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,13 @@ BuildRequires: golang(API) >= 1.25
8282
# suse_version
8383

8484
%if 0%{?ubuntu}
85-
%define go_version 1.22
86-
BuildRequires: golang >= %{go_version}
85+
%define go_min_version 1.22
86+
%if 0%{?ubuntu} >= 2404
87+
# Will use the default golang of the OS which is higher than go_min_version
88+
BuildRequires: golang
89+
%else
90+
BuildRequires: golang-%{go_min_version}
91+
%endif
8792
%endif
8893
# ubuntu
8994

0 commit comments

Comments
 (0)