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 install behavior inconsistent with flags #1878

Closed
sachinjoseph opened this issue Jun 19, 2019 · 2 comments · Fixed by #1879
Closed

pnpm install behavior inconsistent with flags #1878

sachinjoseph opened this issue Jun 19, 2019 · 2 comments · Fixed by #1879
Milestone

Comments

@sachinjoseph
Copy link

pnpm version: 3.5.1

Lockfile version: 5.1

Repro repo:

https://github.com/sachinjoseph/pnpm-install-lockfile-bug

Expected behavior:

pnpm install should not update the lockfile if the current lockfile satisfies the package.jsons (unless or the lockfile version needs an upgrade

  1. If pnpm install --frozen-lockfile can succeed, then pnpm install shouldn't update the lockfile (unless the lockfile version needs an upgrade).

  2. If pnpm install can succeed without updating the lockfile, then pnpm install --lockfile-only should not update the lockfile.

Actual behavior:

Not only does pnpm install update the lockfile when it is not necessary, but also the behavior is inconsistent with different flags.

react-focus-lock version is 1.17.7 in pnpm-lock.yaml before running these commands.

In folder package1

$ cd (repo-root/package1

pnpm install --frozen-lockfile pnpm install pnpm install --lockfile-only
react-focus-lock version in pnpm-lock.yaml 1.17.7 🔴1.19.1 🔴1.19.1

In folder package2

$ cd (repo-root/package2

pnpm install --frozen-lockfile pnpm install pnpm install --lockfile-only
React-focus-lock version in pnpm-lock.yaml 1.17.7 1.17.1 🔴1.19.1

Additional information:

  • In the above examples in which pnpm-lock.yaml changes, the only change in pnpm-lock.yaml is react-focus-lock's version (and its integrity hash).
  • node -v prints: v10.15.3
  • Windows, OS X, or Linux?: Windows 10
@zkochan
Copy link
Member

zkochan commented Jun 20, 2019

🚢 3.5.2

@sachinjoseph
Copy link
Author

sachinjoseph commented Jun 20, 2019

Thanks Zoltan. Verified that this no longer repros on my repro repo with pnpm 3.5.2.

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

Successfully merging a pull request may close this issue.

2 participants