yarn2nix: no sha1 for github tarballs

Since b27d18a412 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
This commit is contained in:
Yureka 2021-10-30 22:02:08 +02:00 committed by Yuka
parent f8efe86ae3
commit 7bec541117

View File

@ -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
}