From 5e2882211581ec18ed00871418a518930452ad6a Mon Sep 17 00:00:00 2001 From: Debarshi Ray Date: Tue, 21 Feb 2023 17:15:21 +0100 Subject: [PATCH] Use %gomodulesmode introduced in go-rpm-macros-3.0.10 There's no need to do a build just for this. --- toolbox.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toolbox.spec b/toolbox.spec index c019ecd..b87d817 100644 --- a/toolbox.spec +++ b/toolbox.spec @@ -168,7 +168,7 @@ The %{name}-tests package contains system tests for %{name}. %build -export GO111MODULE=off +export %{gomodulesmode} export GOPATH=%{gobuilddir}:%{gopath} export CGO_CFLAGS="%{optflags} -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64" ln -s src/cmd cmd