Use %gomodulesmode introduced in go-rpm-macros-3.0.10
There's no need to do a build just for this. Resolves: #2165742
This commit is contained in:
parent
8c0c8e65c3
commit
fe04830ffe
@ -96,7 +96,7 @@ cd "$GOBUILDDIR/src/%{goipath}"
|
||||
|
||||
|
||||
%build
|
||||
export GO111MODULE=off
|
||||
export %{gomodulesmode}
|
||||
GOBUILDDIR="$(pwd)/_build"
|
||||
export GOPATH="$GOBUILDDIR:%{gopath}"
|
||||
export CGO_CFLAGS="%{optflags} -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64"
|
||||
|
Loading…
Reference in New Issue
Block a user