···196196 runHook postConfigure
197197 '');
198198199199- buildPhase = args.buildPhase or (''
199199+ buildPhase = args.buildPhase or (
200200+ lib.warnIf (buildFlags != "" || buildFlagsArray != "")
201201+ "Use the `ldflags` and/or `tags` attributes instead of `buildFlags`/`buildFlagsArray`"
202202+ lib.warnIf (builtins.elem "-buildid=" ldflags)
203203+ "`-buildid=` is set by default as ldflag by buildGoModule"
204204+ ''
200205 runHook preBuild
201206202207 exclude='\(/_\|examples\|Godeps\|testdata'
···313318 } // meta;
314319 });
315320in
316316-lib.warnIf (buildFlags != "" || buildFlagsArray != "")
317317- "Use the `ldflags` and/or `tags` attributes instead of `buildFlags`/`buildFlagsArray`"
318318-lib.warnIf (builtins.elem "-buildid=" ldflags) "`-buildid=` is set by default as ldflag by buildGoModule"
319321lib.warnIf (builtins.elem "-trimpath" GOFLAGS) "`-trimpath` is added by default to GOFLAGS by buildGoModule when allowGoReference isn't set to true"
320322lib.warnIf (lib.any (lib.hasPrefix "-mod=") GOFLAGS) "use `proxyVendor` to control Go module/vendor behavior instead of setting `-mod=` in GOFLAGS"
321323 package