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

yarn install command ignoring if yarn.lock file exist #3252

Closed
OmerHerera opened this issue Apr 25, 2017 · 2 comments
Closed

yarn install command ignoring if yarn.lock file exist #3252

OmerHerera opened this issue Apr 25, 2017 · 2 comments
Labels

Comments

@OmerHerera
Copy link

OmerHerera commented Apr 25, 2017

Do you want to request a feature or report a bug?
Bug

What is the current behavior?
yarn install ignore existing yarn.lock file and install all modules with newest version

If the current behavior is a bug, please provide the steps to reproduce.
Run yarn install in a project that has yarn.lock file
See yarn.lock file created again, overriding old (see attached picture)

yarn bug

What is the expected behavior?
yarn must take into consideration if yarn.lock exist

Please mention your node.js, yarn and operating system version.

OsX El Capitan 10.11.6
node v6.10.0
yarn 0.23.2

I think is the same here

@OmerHerera OmerHerera changed the title yarn install ignoring if yarn.lock file exist yarn install command ignoring if yarn.lock file exist Apr 25, 2017
@OmerHerera
Copy link
Author

I got into the conclusion that if the yarn.lock file was changed manually (without using the yarn cli).
It fails integrity check and generate a new one, I was updating the file because there is a bug with sub-modules here.

I'm right about it?
Thanks

@bestander
Copy link
Member

Yarn would update yarn.lock if there were changes to package.json, for example.

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

No branches or pull requests

2 participants