about summary refs log tree commit diff
path: root/nix/buildGo/external
diff options
context:
space:
mode:
authoredef <edef@edef.eu>2020-08-03T18·42+0000
committeredef <edef@edef.eu>2020-08-04T07·42+0000
commit596e1f7f77e399d1ba32cd00747aa3f94f718a0d (patch)
tree5706f71c4cd40c698805c207f179cc8118b3a178 /nix/buildGo/external
parentc3546c5f9c1733e8b7a7b9e6ed811b8aea5a45c9 (diff)
feat(nix/buildGo): use gopkg attribute of deps r/1579
This removes the need for `map (x: x.gopkg)` in dependency lists.

Change-Id: Ia19e51f14110bf22f5cdbb64fa7ce182e1b34241
Reviewed-on: https://cl.tvl.fyi/c/depot/+/1624
Tested-by: BuildkiteCI
Reviewed-by: tazjin <mail@tazj.in>
Diffstat (limited to 'nix/buildGo/external')
-rw-r--r--nix/buildGo/external/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nix/buildGo/external/default.nix b/nix/buildGo/external/default.nix
index 48f678688e..6f31fbe5ca 100644
--- a/nix/buildGo/external/default.nix
+++ b/nix/buildGo/external/default.nix
@@ -83,7 +83,7 @@ in { src, path, deps ? [] }: let
   depMap = listToAttrs (map (d: {
     name = d.goImportPath;
     value = d;
-  }) deps);
+  }) (map (d: d.gopkg) deps));
 
   name = pathToName path;
   analysisOutput = runCommand "${name}-structure.json" {} ''