From 1e2e43742fc702d37b9aa2125464c0062d1450e7 Mon Sep 17 00:00:00 2001 From: Thomas Roehl Date: Fri, 20 Dec 2024 18:28:32 +0100 Subject: [PATCH] Remove go-toolkit as build requirement for RPM builds if run in CI --- scripts/cc-metric-collector.spec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/cc-metric-collector.spec b/scripts/cc-metric-collector.spec index 6a5e219..008f190 100644 --- a/scripts/cc-metric-collector.spec +++ b/scripts/cc-metric-collector.spec @@ -6,7 +6,9 @@ Summary: Metric collection daemon from the ClusterCockpit suite License: MIT Source0: %{name}-%{version}.tar.gz +%if "%{getenv:CI}" != "1" BuildRequires: go-toolset +%endif BuildRequires: systemd-rpm-macros # for header downloads BuildRequires: wget