From a36558c6713f07de4a05386f76b0a0c70c007dfd Mon Sep 17 00:00:00 2001 From: Maxwell G Date: Jun 01 2025 03:52:14 +0000 Subject: gomodulesmode: allow setting GO111MODULE in a normal way We'll still support %gomodulesmode, but it'd be nice if packagers could just export the shell variable. --- diff --git a/rpm/macros.d/macros.go-compilers-golang b/rpm/macros.d/macros.go-compilers-golang index f3084d4..fd4c224 100644 --- a/rpm/macros.d/macros.go-compilers-golang +++ b/rpm/macros.d/macros.go-compilers-golang @@ -73,7 +73,7 @@ EOF\ )" # Turn off Go modules -%gomodulesmode GO111MODULE=off +%gomodulesmode GO111MODULE="${GO111MODULE:-off}" # Define commands for building # BUILD_ID can be generated for golang build no matter of debuginfo