Skip to content

action-setup v6 renders invalid YAML file #228

@openscript

Description

@openscript

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/@[email protected]/node_modules/@zkochan/js-yaml/lib/loader.js:1722:9)
    at parseAndNormalizePnpmLockfile (/home/runner/work/sparkium/sparkium/node_modules/.pnpm/[email protected]/node_modules/nx/src/plugins/js/lock-file/utils/pnpm-normalizer.js:48:36)
    at parsePnpmLockFile (/home/runner/work/sparkium/sparkium/node_modules/.pnpm/[email protected]/node_modules/nx/src/plugins/js/lock-file/pnpm-parser.js:23:73)
    at getPnpmLockfileNodes (/home/runner/work/sparkium/sparkium/node_modules/.pnpm/[email protected]/node_modules/nx/src/plugins/js/lock-file/pnpm-parser.js:29:18)
    at getLockFileNodes (/home/runner/work/sparkium/sparkium/node_modules/.pnpm/[email protected]/node_modules/nx/src/plugins/js/lock-file/lock-file.js:53:59)
    at internalCreateNodes (/home/runner/work/sparkium/sparkium/node_modules/.pnpm/[email protected]/node_modules/nx/src/plugins/js/index.js:53:79)
    at /home/runner/work/sparkium/sparkium/node_modules/.pnpm/[email protected]/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/[email protected]/node_modules/nx/src/project-graph/plugins/utils.js:8:35)
    at exports.createNodesV2 (/home/runner/work/sparkium/sparkium/node_modules/.pnpm/[email protected]/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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions