diff --git a/.changeset/fluffy-monkeys-change.md b/.changeset/fluffy-monkeys-change.md new file mode 100644 index 0000000000..b7f3681757 --- /dev/null +++ b/.changeset/fluffy-monkeys-change.md @@ -0,0 +1,5 @@ +--- +"@pnpm/package-store": patch +--- + +Fixing a regression. Package should be imported when import method is being identified. diff --git a/packages/package-store/src/storeController/createImportPackage.ts b/packages/package-store/src/storeController/createImportPackage.ts index 6787080fba..32c1a9e9b6 100644 --- a/packages/package-store/src/storeController/createImportPackage.ts +++ b/packages/package-store/src/storeController/createImportPackage.ts @@ -75,7 +75,7 @@ function createAutoImporter (): ImportFunction { // We still choose hard linking that will fall back to copying in edge cases. packageImportMethodLogger.debug({ method: 'hardlink' }) auto = hardlinkPkg.bind(null, linkOrCopy) - return 'hardlink' + return auto(to, opts) } if (!err.message.startsWith('EXDEV: cross-device link not permitted')) throw err globalWarn(err.message)