Skip to content

Commit cccb80f

Browse files
authored
Merge pull request #788 from uyuni-project/fix-ubuntu-build
define go_version when we use something different than the default
2 parents eba8c4e + 6cc3787 commit cccb80f

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

uyuni-tools.spec

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

8484
%if 0%{?ubuntu}
85-
%define go_min_version 1.22
8685
%if 0%{?ubuntu} >= 2404
87-
# Will use the default golang of the OS which is higher than go_min_version
86+
# Will use the default golang of the OS which is higher than minimal required go_version
8887
BuildRequires: golang
8988
%else
90-
BuildRequires: golang-%{go_min_version}
89+
# Overwrite with new go version the OS default
90+
%define go_version 1.22
91+
BuildRequires: golang-%{go_version}
9192
%endif
9293
%endif
9394
# ubuntu

0 commit comments

Comments
 (0)