Merge pull request #267778 from lilyinstarlight/fix/yay-more-fixup-yarn-lock-stuff

prefetch-yarn-deps: re-add git hash for fixup
This commit is contained in:
Felix Bühler 2023-11-16 21:06:38 +01:00 committed by GitHub
commit 05a19f48a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,6 +21,8 @@ const fixupYarnLock = async (lockContents, verbose) => {
if (verbose) console.log(`Rewriting URL ${url} for dependency ${dep}`)
pkg.resolved = urlToName(url)
if (hash)
pkg.resolved += `#${hash}`
return [dep, pkg]
})