diff options
author | Jörg Thalheim <joerg@thalheim.io> | 2020-03-17 16:27:27 +0000 |
---|---|---|
committer | Jörg Thalheim <joerg@thalheim.io> | 2020-03-18 11:29:29 +0000 |
commit | 060a9227c24639ca5a339fbb57b8e05a5eabb92e (patch) | |
tree | ba5e8e6f757c44ae320b18ee0f9b2808cf11137a /pkgs/development | |
parent | 201ac90018d0c621a6f8e2e87206a50ec3eae2f5 (diff) |
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')
-rw-r--r-- | pkgs/development/go-modules/generic/default.nix | 2 |
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 1bf13c18821e..42b446b9fa86 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; }; |