From da55cfac4e4cf4bff0ed2af0e423d5622e8fc022 Mon Sep 17 00:00:00 2001 From: Debarshi Ray Date: Tue, 17 May 2022 23:29:44 +0200 Subject: [PATCH] Add 'BuildRequires: golang(github.com/spf13/viper)' Earlier Viper was being pulled in by Cobra, and hence wasn't explicitly listed as a BuildRequires. However, Cobra 1.4.0 removed the Viper dependency [1], so it needs to be explicitly listed. There's no need to do a build just for this. [1] Cobra commit 5b2b9e9f61d36ccb https://github.com/spf13/cobra/issues/1597 --- toolbox.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/toolbox.spec b/toolbox.spec index 851a239..0c0fd9d 100644 --- a/toolbox.spec +++ b/toolbox.spec @@ -32,6 +32,7 @@ BuildRequires: golang(github.com/mattn/go-isatty) >= 0.0.12 BuildRequires: golang(github.com/sirupsen/logrus) >= 1.4.2 # BuildRequires: golang(github.com/stretchr/testify) >= 1.7.0 BuildRequires: golang(github.com/spf13/cobra) >= 0.0.5 +BuildRequires: golang(github.com/spf13/viper) >= 1.3.2 BuildRequires: golang(golang.org/x/sys/unix) BuildRequires: meson >= 0.58.0 BuildRequires: pkgconfig(bash-completion)