diff options
author | zowoq <59103226+zowoq@users.noreply.github.com> | 2021-12-31 22:41:54 +1000 |
---|---|---|
committer | zowoq <59103226+zowoq@users.noreply.github.com> | 2022-01-06 14:00:58 +1000 |
commit | 8a8c88de70bd7f967cb20ad07583ea9ef12a4a94 (patch) | |
tree | 2c7118b0c4ff8330486a3e14cccb2f94271cf664 /pkgs/development/go-modules | |
parent | 1fe22e19782dabfce0e26d7d6d8e7c4e3b42f739 (diff) | |
download | nixpkgs-8a8c88de70bd7f967cb20ad07583ea9ef12a4a94.tar nixpkgs-8a8c88de70bd7f967cb20ad07583ea9ef12a4a94.tar.gz nixpkgs-8a8c88de70bd7f967cb20ad07583ea9ef12a4a94.tar.bz2 nixpkgs-8a8c88de70bd7f967cb20ad07583ea9ef12a4a94.tar.lz nixpkgs-8a8c88de70bd7f967cb20ad07583ea9ef12a4a94.tar.xz nixpkgs-8a8c88de70bd7f967cb20ad07583ea9ef12a4a94.tar.zst nixpkgs-8a8c88de70bd7f967cb20ad07583ea9ef12a4a94.zip |
buildGoModule: use `proxyVendor` instead of `runVend`
Diffstat (limited to 'pkgs/development/go-modules')
-rw-r--r-- | pkgs/development/go-modules/generic/default.nix | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/pkgs/development/go-modules/generic/default.nix b/pkgs/development/go-modules/generic/default.nix index f00ca1984ec..753dcfab370 100644 --- a/pkgs/development/go-modules/generic/default.nix +++ b/pkgs/development/go-modules/generic/default.nix @@ -26,12 +26,10 @@ , vendorSha256 # Whether to delete the vendor folder supplied with the source. , deleteVendor ? false -# Whether to run the vend tool to regenerate the vendor directory. -# This is useful if any dependency contain C files. -, runVend ? false # Whether to fetch (go mod download) and proxy the vendor directory. -# This is useful if any dependency has case-insensitive conflicts -# which will produce platform dependant `vendorSha256` checksums. +# This is useful if your code depends on c code and go mod tidy does not +# include the needed sources to build or if any dependency has case-insensitive +# conflicts which will produce platform dependant `vendorSha256` checksums. , proxyVendor ? false # We want parallel builds by default @@ -43,6 +41,9 @@ , meta ? {} +# disabled +, runVend ? false + # Not needed with buildGoModule , goPackagePath ? "" @@ -54,7 +55,7 @@ with builtins; -assert (runVend == true && proxyVendor == true) -> throw "can't use `runVend` and `proxyVendor` together"; +assert runVend != false -> throw "`runVend` has been replaced by `proxyVendor`"; assert goPackagePath != "" -> throw "`goPackagePath` is not needed with `buildGoModule`"; |