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

Not generating yarn.lock file as expected #1876

Closed
torifat opened this issue Nov 16, 2016 · 3 comments
Closed

Not generating yarn.lock file as expected #1876

torifat opened this issue Nov 16, 2016 · 3 comments
Assignees
Labels

Comments

@torifat
Copy link
Member

torifat commented Nov 16, 2016

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

What is the current behavior?
After a successful yarn install if I remove yarn.lock file and run yarn install again it doesn't generate the lockfile.

If the current behavior is a bug, please provide the steps to reproduce.

  • yarn add os-homedir
  • rm yarn.lock
  • yarn install

What is the expected behavior?
It should generate the lockfile

Please mention your node.js, yarn and operating system version.
node v7.1.0
yarn v0.17.2
macOS v10.12.1

@wyze wyze added the cat-bug label Nov 16, 2016
@markstos
Copy link
Contributor

I reproduced this issue with Node.js 4.4.1 and yarn 0.17.2. From reviewing the docs of yarn install, there are only options to suppress yarn.lock being generated, implying that if those options aren't provided, the lockfile is expected to be regenerated.

The workaround is to run yarn add again for the top level dependencies. In this case, yarn add os-homedir. That causes yarn.lock to be re-generated.

@wyze
Copy link
Member

wyze commented Nov 16, 2016

I confirmed this is a regression as 0.16.1 does generate the lockfile if it is missing.

@wyze
Copy link
Member

wyze commented Nov 16, 2016

Fixed via #1888.

@wyze wyze closed this as completed Nov 16, 2016
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

3 participants