Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pnpm dlx corrupts lockfile in workspaces #4743

Closed
jaens opened this issue May 16, 2022 · 1 comment · Fixed by #4762
Closed

pnpm dlx corrupts lockfile in workspaces #4743

jaens opened this issue May 16, 2022 · 1 comment · Fixed by #4762

Comments

@jaens
Copy link

jaens commented May 16, 2022

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
@dan-lee
Copy link

dan-lee commented May 18, 2022

The same is happening to us since v7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants