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

Handle GitHub Package Registry URLs #7664

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

tvainika
Copy link

@tvainika tvainika commented Nov 1, 2019

Summary

Fix tarball name resolver to handle GitHub Package Registry (currently still in beta) to match what I've experienced using private packages via beta program signup.

Because basename part of the urls do not match scoped tarball filenames, also offline mirror pruning needs to match the filename from url.

This is not very clean code, but for me it looks like handling offline mirror pruning correctly the codebase needs some refactoring to match tarball filenames in common way usable both for tarball fetcher and offline mirror pruning.

Test plan

Added tarball fetcher test similar to other private package registries have. For offline mirror pruning I did not find suitable template for adding new test.

When yarn-offline-mirror-pruning is set to true, mirrored tarball
filename of package must be resolved from download URL to scoped
tarball filename.
@arcanis
Copy link
Member

arcanis commented Nov 21, 2019

Hey! Thanks for the diff! Can you describe in more details the bug and circumstances of the bug? Without knowing the context I'm not entirely sure what it fixes. Thanks 😃

@tvainika
Copy link
Author

Can you describe in more details the bug and circumstances of the bug?

The change is similar to #7499 to fix offline mirror filename but with GitHub package registry.

@Jonathan-Navagis
Copy link

Is there a workaround for this issue? Or any plan to merge this change in? I'm experiencing the same issue of yarn not pulling down the tarball into the offline mirror if it's in a private GitHub package repository.

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

Successfully merging this pull request may close these issues.

None yet

3 participants