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

fix(resolution): Allow github dependency refs of type "#pull/1/head" #5673

Merged
merged 1 commit into from
Apr 15, 2018

Conversation

rally25rs
Copy link
Contributor

@rally25rs rally25rs commented Apr 15, 2018

Summary

Fixes #1610. Previously yarn would allow a dependency on a GitHub pull request with "#1/head" where 1 is the PR number. npm allows the format "#pull/1/head" as well. For compatibility, allowing Yarn to fall back to this format.

Test plan

Added a test to git-ref-resolver to test the case "pull/10/head"

Previously yarn would allow a dependency of a github pullrequest with "yarnpkg#1/head" where 1 is the PR
number. npm allows the format "#pull/1/head" as well. For compatability, allowing yarn to fall back
to this format.
Copy link
Member

@BYK BYK left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thanks!

Hat tip to @Volune who made this very straightorward with his refactor in #3836

@BYK BYK merged commit 25742bb into yarnpkg:master Apr 15, 2018
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.

Yarn doesn't understand Github pull requests as package versions
2 participants