diff options
author | edef <edef@mutable.io> | 2020-08-04T15·12+0000 |
---|---|---|
committer | edef <edef@edef.eu> | 2020-08-04T22·51+0000 |
commit | 1c96e14174dc281fc5aec4f9a771b5d55eb8f150 (patch) | |
tree | c7773bd6dd21e4a4fdb68c9de712bf4b1cf3698a /nix/fetchGoModule/default.nix | |
parent | ee627e07f1ea875ab5c1c55ebb4ed5ec5747b8a8 (diff) |
chore(nix/fetchGoModule): don't move downloaded file r/1585
unzip(1) doesn't care about the extension, unlike the unpackFile hook. Change-Id: Ia9d0e17c4b343ee5d32350329eb6267b9dc35605 Reviewed-on: https://cl.tvl.fyi/c/depot/+/1641 Tested-by: BuildkiteCI Reviewed-by: kanepyork <rikingcoding@gmail.com> Reviewed-by: tazjin <mail@tazj.in>
Diffstat (limited to '')
-rw-r--r-- | nix/fetchGoModule/default.nix | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/nix/fetchGoModule/default.nix b/nix/fetchGoModule/default.nix index 4f0cdb4b78cb..84794bbc50c7 100644 --- a/nix/fetchGoModule/default.nix +++ b/nix/fetchGoModule/default.nix @@ -25,10 +25,8 @@ pkgs.fetchurl { postFetch = '' unpackDir="$TMPDIR/unpack" mkdir "$unpackDir" - cd "$unpackDir" - mv "$downloadedFile" "$TMPDIR/src.zip" - ${pkgs.unzip}/bin/unzip "$TMPDIR/src.zip" -d "$unpackDir" + ${pkgs.unzip}/bin/unzip "$downloadedFile" -d "$unpackDir" mv "$unpackDir/${path}@v${version}" "$out" ''; } |