diff options
author | zowoq <59103226+zowoq@users.noreply.github.com> | 2021-08-23 14:55:51 +1000 |
---|---|---|
committer | zowoq <59103226+zowoq@users.noreply.github.com> | 2021-08-26 21:35:06 +1000 |
commit | 3360a376cb905ac40e77d5424089d4893e9cd157 (patch) | |
tree | 2cc54b7d8ada53858c06632f888ce3e8e2d524ae /pkgs/development/go-modules | |
parent | 13ea123c74cdcb33cdc376b16677044512615afa (diff) | |
download | nixpkgs-3360a376cb905ac40e77d5424089d4893e9cd157.tar nixpkgs-3360a376cb905ac40e77d5424089d4893e9cd157.tar.gz nixpkgs-3360a376cb905ac40e77d5424089d4893e9cd157.tar.bz2 nixpkgs-3360a376cb905ac40e77d5424089d4893e9cd157.tar.lz nixpkgs-3360a376cb905ac40e77d5424089d4893e9cd157.tar.xz nixpkgs-3360a376cb905ac40e77d5424089d4893e9cd157.tar.zst nixpkgs-3360a376cb905ac40e77d5424089d4893e9cd157.zip |
buildGoModule: warn if buildFlagsArray is used
Diffstat (limited to 'pkgs/development/go-modules')
-rw-r--r-- | pkgs/development/go-modules/generic/default.nix | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/pkgs/development/go-modules/generic/default.nix b/pkgs/development/go-modules/generic/default.nix index a7852bcc7e5..3b645f9ce8b 100644 --- a/pkgs/development/go-modules/generic/default.nix +++ b/pkgs/development/go-modules/generic/default.nix @@ -46,8 +46,9 @@ # Not needed with buildGoModule , goPackagePath ? "" -# needed for buildFlags warning +# needed for buildFlags{,Array} warning , buildFlags ? "" +, buildFlagsArray ? "" , ... }@args': @@ -271,6 +272,6 @@ let }; }); in -lib.warnIf (buildFlags != "") - "Use the `ldflags` and/or `tags` attributes instead of `buildFlags`" +lib.warnIf (buildFlags != "" || buildFlagsArray != "") + "Use the `ldflags` and/or `tags` attributes instead of `buildFlags`/`buildFlagsArray`" package |