Skip to content

pnpm dlx corrupts lockfile in workspaces #4743

@jaens

Description

@jaens

pnpm version:

7.1.0

Code to reproduce the issue:

(in a fresh directory)

mkdir w1; ( cd w1; pnpm init; pnpm add -D typescript; )
cp -a w1 w2
echo 'packages: [w1, w2]' > pnpm-workspace.yaml
pnpm install
pnpm dlx remove-github-forks

Expected behavior:

pnpm-lockfile.yaml unmodified. Running pnpm install afterwards does nothing.

Actual behavior:

pnpm-lockfile.yaml is modified after pnpm dlx. Running pnpm install in this state will reinstall everything.
This only happens in workspace projects, not regular projects.

Additional information:

  • node -v prints: v17.1.0
  • Windows, macOS, or Linux?: Windows

Metadata

Metadata

Assignees

No one assigned

    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