summary refs log tree commit diff
path: root/pkgs/development/go-modules
diff options
context:
space:
mode:
authorJörg Thalheim <joerg@thalheim.io>2020-03-17 16:27:27 +0000
committerJörg Thalheim <joerg@thalheim.io>2020-03-18 11:29:29 +0000
commit060a9227c24639ca5a339fbb57b8e05a5eabb92e (patch)
treeba5e8e6f757c44ae320b18ee0f9b2808cf11137a /pkgs/development/go-modules
parent201ac90018d0c621a6f8e2e87206a50ec3eae2f5 (diff)
downloadnixpkgs-060a9227c24639ca5a339fbb57b8e05a5eabb92e.tar
nixpkgs-060a9227c24639ca5a339fbb57b8e05a5eabb92e.tar.gz
nixpkgs-060a9227c24639ca5a339fbb57b8e05a5eabb92e.tar.bz2
nixpkgs-060a9227c24639ca5a339fbb57b8e05a5eabb92e.tar.lz
nixpkgs-060a9227c24639ca5a339fbb57b8e05a5eabb92e.tar.xz
nixpkgs-060a9227c24639ca5a339fbb57b8e05a5eabb92e.tar.zst
nixpkgs-060a9227c24639ca5a339fbb57b8e05a5eabb92e.zip
buildGoModule: enable strictDeps
This will improve cross compiling in the long run.
See also https://github.com/NixOS/nixpkgs/pull/82786
Diffstat (limited to 'pkgs/development/go-modules')
-rw-r--r--pkgs/development/go-modules/generic/default.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/development/go-modules/generic/default.nix b/pkgs/development/go-modules/generic/default.nix
index 1bf13c18821..42b446b9fa8 100644
--- a/pkgs/development/go-modules/generic/default.nix
+++ b/pkgs/development/go-modules/generic/default.nix
@@ -208,6 +208,8 @@ let
       find $out/bin -type f -exec ${removeExpr removeReferences} '{}' + || true
     '';
 
+    strictDeps = true;
+
     disallowedReferences = lib.optional (!allowGoReference) go;
 
     passthru = passthru // { inherit go go-modules modSha256; };