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] migrate offline cache from v1 to v2 #2465

Open
1 of 2 tasks
IanVS opened this issue Feb 11, 2021 · 2 comments
Open
1 of 2 tasks

[Feature] migrate offline cache from v1 to v2 #2465

IanVS opened this issue Feb 11, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@IanVS
Copy link
Contributor

IanVS commented Feb 11, 2021

  • I'd be willing to implement this feature (contributing guide)
  • This feature is important to have in this repository; a contrib plugin wouldn't do

Describe the user story

I am attempting to migrate from yarn v1 to v2. My company has been using the yarn-offline-mirror setting, and checking in the .tar.gz files. I would like to migrate to yarn v2 without re-downloading all of my dependencies from the internet, losing confidence that the files have not changed since originally downloaded.

Describe the solution you'd like

I would like to tell yarn to use my existing offline files, or that it should convert them into the new format rather than re-downloading them.

Describe the drawbacks of your solution

I can't think of any.

Describe alternatives you've considered

I'm not sure how this could be implemented, whether it could be a flag to the command line to tell yarn berry where to find legacy offline mirror files, or something else.

@IanVS IanVS added the enhancement New feature or request label Feb 11, 2021
@Lunarequest
Copy link

Downstream building applications in flatpaks requires a offline cache, this would be a massive help for us

@jhudsoncedaron
Copy link

Just found out we're in the same boat. We never upgraded off of yarn 1 until another developer tried to switch over and couldn't follow the setup instructions for the project because of yarn version.

We don't trust the packages we use to not just go away on the upstream server sometime in the future.

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

3 participants