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

[Feature] Cache dependencies for all branches #559

Closed
1 of 2 tasks
jackHedaya opened this issue Oct 31, 2019 · 2 comments
Closed
1 of 2 tasks

[Feature] Cache dependencies for all branches #559

jackHedaya opened this issue Oct 31, 2019 · 2 comments
Labels
enhancement New feature or request

Comments

@jackHedaya
Copy link

  • I'd be willing to implement this feature
    Would need to familiarize myself with the yarn repo.
  • This feature can already be implemented through a plugin
    Not sure

Describe the user story

It is frustrating when I change git branches and get a dependency error because I didn't yarn again.

Describe the solution you'd like

I think it would be very valuable for yarn to automagically keep track of which dependencies are needed for which git branch, pivoting whenever a branch is changed.

Describe the drawbacks of your solution

The drawbacks include storage issues (by keeping unused dependencies) and tracking the changes without reformatting yarn.lock.

Describe alternatives you've considered

A thought that occurred to me was a git hook (like husky) that runs yarn every time the branch is changed.

@jackHedaya jackHedaya added the enhancement New feature or request label Oct 31, 2019
@arcanis
Copy link
Member

arcanis commented Oct 31, 2019

Have you seen Zero-Installs?

@jackHedaya
Copy link
Author

Just checked it out. Looks awesome! Definitely looking forward to Berry!

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

No branches or pull requests

2 participants