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:
parent
f8efe86ae3
commit
7bec541117
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user