fix managed items in context hash or timestamp hash

This commit is contained in:
Tobias Koppers 2019-11-06 00:27:47 +01:00
parent c1fdc68809
commit 65915d55aa
2 changed files with 2 additions and 3 deletions

View File

@ -1343,7 +1343,7 @@ class FileSystemInfo {
const managedItem = getManagedItem(managedPath, child);
if (managedItem) {
// construct timestampHash from managed info
return this.managedItemQueue.add(child, (err, info) => {
return this.managedItemQueue.add(managedItem, (err, info) => {
if (err) return callback(err);
return callback(null, {
safeTime: 0,
@ -1437,7 +1437,7 @@ class FileSystemInfo {
const managedItem = getManagedItem(managedPath, child);
if (managedItem) {
// construct hash from managed info
return this.managedItemQueue.add(child, (err, info) => {
return this.managedItemQueue.add(managedItem, (err, info) => {
if (err) return callback(err);
callback(null, info || "");
});

View File

@ -6,7 +6,6 @@ describe("TestCases", () => {
name: "cache pack",
cache: {
type: "filesystem",
store: "pack",
managedPaths: [path.resolve(__dirname, "../node_modules")]
},
optimization: {