Skip to content

Yarn 1.X - Can't install Github Pull Requests anymore #4369

@mtraynham

Description

@mtraynham

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

What is the current behavior?
Yarn 0.X allowed you to install PR commits by referencing the PR number. I've seen a few ways to do this, but it's always worked for me as:
yarn add angular-ui/ui-layout#228/head

Using 1.X, you now get:

yarn add v1.0.1
info No lockfile found.
[1/4] Resolving packages...
error Couldn't find match for "228/head" in "_c" for "https://github.com/angular-ui/ui-layout.git".
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

If the current behavior is a bug, please provide the steps to reproduce.
yarn init; yarn add angular-ui/ui-layout#228/head

What is the expected behavior?
It installs the head commit of the Pull Request.

Please mention your node.js, yarn and operating system version.
Node 8.4
Yarn 1.0.1
Linux Mint 18.3

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions