yarnConfigHook: revert "prevent yarn from resolving dependencies using git" (#489414)

This commit is contained in:
Doron Behar
2026-02-11 13:37:48 +00:00
committed by GitHub
@@ -33,9 +33,7 @@ const fixupYarnLock = async (lockContents, verbose) => {
if (hash)
pkg.resolved += `#${hash}`
// Rewrite key to remove git+ prefix and .git suffix to prevent yarn git resolver
let fixedDep = dep.replace(/@git\+/, '@').replace(/\.git(#|$)/, '$1')
return [fixedDep, pkg]
return [dep, pkg]
})
)