You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Consistent cache misses for one of our monorepo libraries.
Expected Behavior
When there are no changes on the given library and there is already an entry in cache, it should get the task's output from cache instead of executing the task process again.
Same details as the previously opened issue #19275.
The fix that was done on file packages/nx/src/project-graph/utils/retrieve-workspace-files.ts where sorting was added fileData = fileData.concat(globalFiles).sort(); does not properly sort the files given that the argument passed to the sort fn is an object and not a string.
Passing a predicate (a, b) => a.file.localeCompare(b.file) to the sorting function, correctly sorts the files by fileName.
Current Behavior
Consistent cache misses for one of our monorepo libraries.
Expected Behavior
When there are no changes on the given library and there is already an entry in cache, it should get the task's output from cache instead of executing the task process again.
GitHub Repo
No response
Steps to Reproduce
Nx Report
Failure Logs
No response
Package Manager Version
npm 9.5.1
Operating System
Additional Information
Same details as the previously opened issue #19275.
The fix that was done on file
packages/nx/src/project-graph/utils/retrieve-workspace-files.ts
where sorting was addedfileData = fileData.concat(globalFiles).sort();
does not properly sort the files given that the argument passed to the sort fn is an object and not a string.Passing a predicate
(a, b) => a.file.localeCompare(b.file)
to the sorting function, correctly sorts the files by fileName.The text was updated successfully, but these errors were encountered: