-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
When "pnpm-lock.yaml" doesn't exist, "pnpm install" should not respect "node_modules/.pnpm-lock.yaml" #1890
Comments
@zkochan I also have a related question: If |
yes |
I don't think this is an issue. Some users of pnpm set the |
Okay, thanks. Closing this issue. |
pnpm version: 3.5.3
Code to reproduce the issue:
https://github.com/sachinjoseph/rush-pnpm-bug/tree/pnpm-install-node_modules-lockfile-bug
Repro steps
git checkout pnpm-install-node_modules-lockfile-bug
cd common/temp
pnpm install
Installs react-focus-lock version 1.17.7
rm .\pnpm-lock.yaml
pnpm install
Installs react-focus-lock version 1.17.7
rm .\pnpm-lock.yaml
rm .\node_modules\.pnpm-lock.yaml
pnpm install
Installs react-focus-lock version 1.19.1
Expected behavior:
If
pnpm-lock.yaml
doesn't exist, pnpm install should not respect.pnpm-lock.yaml
innode_modules
folder.In the repro steps, step 4 should fail.
Actual behavior:
When
pnpm-lock.yaml
doesn't exist, pnpm install respects.pnpm-lock.yaml
innode_modules
folder. Step 4 passes when pnpm-lock.yaml doesn't exist.Additional information:
node -v
prints: v10.15.3The text was updated successfully, but these errors were encountered: