After updating from v5 to v6 pnpm install --frozen-lockfile isn't successful anymore, because it seems something is modifying the pnpm-lock.yaml and renders it invalid.
> pnpm exec nx run-many --nx-bail --target=build --parallel 10 --output-style stream
NX Failed to parse pnpm lockfile
Please open an issue at `https://github.com/nrwl/nx/issues/new?template=1-bug.yml` and provide a reproduction.
Original error: expected a single document in the stream, but found more
YAMLException: expected a single document in the stream, but found more
at load (/home/runner/work/sparkium/sparkium/node_modules/.pnpm/@zkochan+js-yaml@0.0.7/node_modules/@zkochan/js-yaml/lib/loader.js:1722:9)
at parseAndNormalizePnpmLockfile (/home/runner/work/sparkium/sparkium/node_modules/.pnpm/nx@22.6.5/node_modules/nx/src/plugins/js/lock-file/utils/pnpm-normalizer.js:48:36)
at parsePnpmLockFile (/home/runner/work/sparkium/sparkium/node_modules/.pnpm/nx@22.6.5/node_modules/nx/src/plugins/js/lock-file/pnpm-parser.js:23:73)
at getPnpmLockfileNodes (/home/runner/work/sparkium/sparkium/node_modules/.pnpm/nx@22.6.5/node_modules/nx/src/plugins/js/lock-file/pnpm-parser.js:29:18)
at getLockFileNodes (/home/runner/work/sparkium/sparkium/node_modules/.pnpm/nx@22.6.5/node_modules/nx/src/plugins/js/lock-file/lock-file.js:53:59)
at internalCreateNodes (/home/runner/work/sparkium/sparkium/node_modules/.pnpm/nx@22.6.5/node_modules/nx/src/plugins/js/index.js:53:79)
at /home/runner/work/sparkium/sparkium/node_modules/.pnpm/nx@22.6.5/node_modules/nx/src/project-graph/plugins/utils.js:10:33
at Array.map (<anonymous>)
at createNodesFromFiles (/home/runner/work/sparkium/sparkium/node_modules/.pnpm/nx@22.6.5/node_modules/nx/src/project-graph/plugins/utils.js:8:35)
at exports.createNodesV2 (/home/runner/work/sparkium/sparkium/node_modules/.pnpm/nx@22.6.5/node_modules/nx/src/plugins/js/index.js:27:51)
NX Failed to process project graph.
Pass --verbose to see the stacktraces.
ELIFECYCLE Command failed with exit code 1.
Error: Process completed with exit code 1.
After updating from v5 to v6
pnpm install --frozen-lockfileisn't successful anymore, because it seems something is modifying thepnpm-lock.yamland renders it invalid.