···314314 });
315315in
316316lib.warnIf (buildFlags != "" || buildFlagsArray != "")
317317- "Use the `ldflags` and/or `tags` attributes instead of `buildFlags`/`buildFlagsArray`"
317317+ "`buildFlags`/`buildFlagsArray` are deprecated and will be removed in the 24.11 release. Use the `ldflags` and/or `tags` attributes instead"
318318lib.warnIf (builtins.elem "-buildid=" ldflags) "`-buildid=` is set by default as ldflag by buildGoModule"
319319lib.warnIf (builtins.elem "-trimpath" GOFLAGS) "`-trimpath` is added by default to GOFLAGS by buildGoModule when allowGoReference isn't set to true"
320320lib.warnIf (lib.any (lib.hasPrefix "-mod=") GOFLAGS) "use `proxyVendor` to control Go module/vendor behavior instead of setting `-mod=` in GOFLAGS"
+1-1
pkgs/build-support/go/package.nix
···286286 });
287287in
288288lib.warnIf (buildFlags != "" || buildFlagsArray != "")
289289- "Use the `ldflags` and/or `tags` attributes instead of `buildFlags`/`buildFlagsArray`"
289289+ "`buildFlags`/`buildFlagsArray` are deprecated and will be removed in the 24.11 release. Use the `ldflags` and/or `tags` attributes instead"
290290lib.warnIf (builtins.elem "-buildid=" ldflags) "`-buildid=` is set by default as ldflag by buildGoModule"
291291lib.warnIf (builtins.elem "-trimpath" GOFLAGS) "`-trimpath` is added by default to GOFLAGS by buildGoModule when allowGoReference isn't set to true"
292292 package
···18181919 vendorHash = "sha256-sAVMmDeHXEgQXb/Xi4nXYztXjuykE0TFebkeubMTZ3k=";
20202121- preCheck = ''
2222- buildFlagsArray+="-short"
2323- '';
2121+ checkFlags = [
2222+ "-short"
2323+ ];
24242525 meta = with lib; {
2626 description = "Utility for ensuring secure connections to Google Cloud SQL instances";
+4-5
pkgs/tools/misc/infracost/default.nix
···2424 # want but also limits the tests
2525 unset subPackages
26262727- # checkFlags aren't correctly passed through via buildGoModule so we use buildFlagsArray
2828- # -short only runs the unit-tests tagged short
2929- # move to checkFlags after https://github.com/NixOS/nixpkgs/pull/173702
3030- buildFlagsArray+="-short"
3131-3227 # remove tests that require networking
3328 rm cmd/infracost/{breakdown,diff,hcl,run}_test.go
3429 '';
3030+3131+ checkFlags = [
3232+ "-short"
3333+ ];
35343635 postInstall = ''
3736 export INFRACOST_SKIP_UPDATE_CHECK=true
+2-4
pkgs/tools/misc/massren/default.nix
···23232424 ldflags = [ "-s" "-w" ];
25252626- preCheck =
2626+ checkFlags =
2727 let
2828 skippedTests = [
2929 # Possible error about github.com/mattn/go-sqlite3
···3131 "Test_processFileActions"
3232 ];
3333 in
3434- ''
3535- buildFlagsArray+=("-run" "[^(${builtins.concatStringsSep "|" skippedTests})]")
3636- '';
3434+ [ "-skip=^${builtins.concatStringsSep "$|^" skippedTests}$" ];
37353836 meta = with lib; {
3937 description = "Easily rename multiple files using your text editor";