Skip to content

Commit

Permalink
fix(core): remove additional quotes around cache path while pruning (#…
Browse files Browse the repository at this point in the history
…27273)

Old cache entries are not removed because the path to the cache is
wrong.

It throws a silent error `no such file or directory, scandir
'"PATH_TO_PROJECT/.nx/cache"/terminalOutputs'`

closed #27206

(cherry picked from commit cead184)
  • Loading branch information
SFU253 authored and FrozenPandaz committed Aug 7, 2024
1 parent 2ef1c54 commit b12043d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nx/src/tasks-runner/cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export class Cache {
if (shouldSpawnProcess) {
const scriptPath = require.resolve('./remove-old-cache-records.js');
try {
const p = spawn('node', [scriptPath, `"${this.cachePath}"`], {
const p = spawn('node', [scriptPath, `${this.cachePath}`], {
stdio: 'ignore',
detached: true,
shell: false,
Expand Down

0 comments on commit b12043d

Please sign in to comment.