We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13c930e commit 949dd68Copy full SHA for 949dd68
1 file changed
src/plugins/discovery.ts
@@ -507,7 +507,13 @@ function readCandidatePackageManifest(params: {
507
rootRealPath?: string;
508
packageManifestCache?: Map<string, PackageManifest | null>;
509
}): PackageManifest | null {
510
- const cacheKey = params.rootRealPath ?? path.resolve(params.dir);
+ const trustMode =
511
+ params.origin === "bundled"
512
+ ? "trusted"
513
+ : params.rejectHardlinks
514
+ ? "external-reject"
515
+ : "external-allow";
516
+ const cacheKey = `${trustMode}:${params.rootRealPath ?? path.resolve(params.dir)}`;
517
const cached = params.packageManifestCache?.get(cacheKey);
518
if (cached !== undefined) {
519
return cached;
0 commit comments