mirror of
https://github.com/pnpm/pnpm.git
synced 2026-07-22 21:53:02 -04:00
fix: install absolute path pkg failed (#9888)
This commit is contained in:
5
.changeset/afraid-mammals-battle.md
Normal file
5
.changeset/afraid-mammals-battle.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@pnpm/headless": patch
|
||||
---
|
||||
|
||||
Failed to install dependency packages under absolute paths on different disk paths.
|
||||
@@ -794,7 +794,8 @@ async function getRootPackagesToLink (
|
||||
if (ref.startsWith('link:')) {
|
||||
const isDev = Boolean(projectSnapshot.devDependencies?.[alias])
|
||||
const isOptional = Boolean(projectSnapshot.optionalDependencies?.[alias])
|
||||
const packageDir = path.join(opts.projectDir, ref.slice(5))
|
||||
ref = ref.slice(5)
|
||||
const packageDir = path.isAbsolute(ref) ? ref : path.join(opts.projectDir, ref)
|
||||
const linkedPackage = await (async () => {
|
||||
const importerId = getLockfileImporterId(opts.lockfileDir, packageDir)
|
||||
if (opts.importerManifestsByImporterId[importerId]) {
|
||||
|
||||
Reference in New Issue
Block a user