From 7bec54111767242a57bc49bb760bff2ef075a3ca Mon Sep 17 00:00:00 2001 From: Yureka Date: Sat, 30 Oct 2021 22:02:08 +0200 Subject: yarn2nix: no sha1 for github tarballs Since b27d18a412b we fetch packages with codeload.github.com tarballs as resolved field with fetchgit. The sha1 of the tarball is irrelevant, instead nix-prefetch-git will be used to determine the expected fetchgit FOD hash. Fixes #143828 --- .../tools/yarn2nix-moretea/yarn2nix/lib/fixPkgAddMissingSha1.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkgs/development/tools/yarn2nix-moretea/yarn2nix') diff --git a/pkgs/development/tools/yarn2nix-moretea/yarn2nix/lib/fixPkgAddMissingSha1.js b/pkgs/development/tools/yarn2nix-moretea/yarn2nix/lib/fixPkgAddMissingSha1.js index 2826f36e32606..40467a68992bf 100644 --- a/pkgs/development/tools/yarn2nix-moretea/yarn2nix/lib/fixPkgAddMissingSha1.js +++ b/pkgs/development/tools/yarn2nix-moretea/yarn2nix/lib/fixPkgAddMissingSha1.js @@ -48,7 +48,7 @@ async function fixPkgAddMissingSha1(pkg) { const [url, sha1] = pkg.resolved.split('#', 2) - if (sha1) { + if (sha1 || url.startsWith('https://codeload.github.com')) { return pkg } -- cgit 1.4.1