From 1c96e14174dc281fc5aec4f9a771b5d55eb8f150 Mon Sep 17 00:00:00 2001 From: edef Date: Tue, 4 Aug 2020 15:12:14 +0000 Subject: chore(nix/fetchGoModule): don't move downloaded file 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 Reviewed-by: tazjin --- nix/fetchGoModule/default.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'nix') 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" ''; } -- cgit 1.4.1