···163 inherit (go) GOOS GOARCH;
164165 GOFLAGS = GOFLAGS
166- ++ lib.optional (!proxyVendor) "-mod=vendor"
167- ++ lib.optional (!allowGoReference) "-trimpath";
00168 inherit CGO_ENABLED enableParallelBuilding GO111MODULE GOTOOLCHAIN;
169170 # If not set to an explicit value, set the buildid empty for reproducibility.
···196 runHook postConfigure
197 '');
198199- buildPhase = args.buildPhase or (''
00000200 runHook preBuild
201202 exclude='\(/_\|examples\|Godeps\|testdata'
···313 } // meta;
314 });
315in
316-lib.warnIf (buildFlags != "" || buildFlagsArray != "")
317- "Use the `ldflags` and/or `tags` attributes instead of `buildFlags`/`buildFlagsArray`"
318-lib.warnIf (builtins.elem "-buildid=" ldflags) "`-buildid=` is set by default as ldflag by buildGoModule"
319-lib.warnIf (builtins.elem "-trimpath" GOFLAGS) "`-trimpath` is added by default to GOFLAGS by buildGoModule when allowGoReference isn't set to true"
320-lib.warnIf (lib.any (lib.hasPrefix "-mod=") GOFLAGS) "use `proxyVendor` to control Go module/vendor behavior instead of setting `-mod=` in GOFLAGS"
321- package
···163 inherit (go) GOOS GOARCH;
164165 GOFLAGS = GOFLAGS
166+ ++ lib.warnIf (lib.any (lib.hasPrefix "-mod=") GOFLAGS) "use `proxyVendor` to control Go module/vendor behavior instead of setting `-mod=` in GOFLAGS"
167+ (lib.optional (!proxyVendor) "-mod=vendor")
168+ ++ lib.warnIf (builtins.elem "-trimpath" GOFLAGS) "`-trimpath` is added by default to GOFLAGS by buildGoModule when allowGoReference isn't set to true"
169+ (lib.optional (!allowGoReference) "-trimpath");
170 inherit CGO_ENABLED enableParallelBuilding GO111MODULE GOTOOLCHAIN;
171172 # If not set to an explicit value, set the buildid empty for reproducibility.
···198 runHook postConfigure
199 '');
200201+ buildPhase = args.buildPhase or (
202+ lib.warnIf (buildFlags != "" || buildFlagsArray != "")
203+ "Use the `ldflags` and/or `tags` attributes instead of `buildFlags`/`buildFlagsArray`"
204+ lib.warnIf (builtins.elem "-buildid=" ldflags)
205+ "`-buildid=` is set by default as ldflag by buildGoModule"
206+ ''
207 runHook preBuild
208209 exclude='\(/_\|examples\|Godeps\|testdata'
···320 } // meta;
321 });
322in
323+package
00000