jwendell reported a new issue against the project: `go-rpm-macros` that you are following: `` Currently it is hardcoded in macros.go-compilers-golang line 35:
# Turn off Go modules %gomodulesmode GO111MODULE=off
This is preventing me to build passing the flag "=mod=vendor". I'm currently setting: %global gocompilerflags "-mod=vendor" in my .spec.
Build fails with: build flag -mod=vendor only valid when using modules
Because %gomodulesmode is being passed to go build.
Ideally we should be able to override it, so that it works when trying to use -mod=XXX value. ``
To reply, visit the link below or just reply to this email https://pagure.io/go-rpm-macros/issue/28
eclipseo added a new comment to an issue you are following: `` Have you tried redefining gomodulesmode in your SPEC:
%global gomodulesmode GO111MODULE=on ``
To reply, visit the link below or just reply to this email https://pagure.io/go-rpm-macros/issue/28
The status of the issue: `Allow override of %gomodulesmode` of project: `go-rpm-macros` has been updated to: Closed by jwendell.
jwendell added a new comment to an issue you are following: `` No, I didn't know it would work. Thanks. ``
To reply, visit the link below or just reply to this email https://pagure.io/go-rpm-macros/issue/28
golang@lists.fedoraproject.org