diff --git a/src/packageRequester.ts b/src/packageRequester.ts index 6670e96bff..dc59dcf725 100644 --- a/src/packageRequester.ts +++ b/src/packageRequester.ts @@ -466,7 +466,7 @@ function fetchToStore ( finishing.resolve(undefined) return } - storeLogger.warn(`Refetching ${target} to store, as it was modified`) + storeLogger.warn(`Refetching ${target} to store. It was either modified or had no integrity checksums`) } // We fetch into targetStage directory first and then fs.rename() it to the diff --git a/test/index.ts b/test/index.ts index 84a599a7dc..c7c262ec7a 100644 --- a/test/index.ts +++ b/test/index.ts @@ -662,7 +662,7 @@ test('refetch package to store if it has been modified', async (t) => { t.ok(reporter.calledWithMatch({ level: 'warn', name: 'pnpm:store', - message: `Refetching ${path.join(storePath, pkgId)} to store, as it was modified`, + message: `Refetching ${path.join(storePath, pkgId)} to store. It was either modified or had no integrity checksums`, }), 'refetch logged') t.end() @@ -726,7 +726,7 @@ test('refetch package to store if it has no integrity checksums and verification t.ok(reporter.calledWithMatch({ level: 'warn', name: 'pnpm:store', - message: `Refetching ${path.join(storePath, pkgId)} to store, as it was modified`, + message: `Refetching ${path.join(storePath, pkgId)} to store. It was either modified or had no integrity checksums`, }), 'refetch logged') t.end()