You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do you want to request a feature or report a bug?
This is a bug report.
What is the current behavior?
When running yarn install when package.json contains a dependency which uses a git+ssh url and
specifies a branch name with a # in the name (common for tracking issues) the installation fails with the following error:
error Couldn't find match for "issue-" in "refs/heads/issue-#1,refs/heads/master" for "git@github.com:cdimitroulas/test-repository.git".
Previously yarn was using a string split('#') to separate the URL from the branch name. If a branch
also had a hash in it, then the rest of the split chunks were ignored, meaning only the chunk before
the first '#' was used as the branch name. This change handles those URLs correctly, preserving the
'#'s in URL hashes.
yarnpkg#5954
Discovered that this is a duplicate of #4880 which already had a different PR #4881 open to fix it. Going to close this issue as a duplicate and close my PR since it's the same as the one that already existed. There is some discussion in #4881 as to whether or not we should support this syntax at all...
Do you want to request a feature or report a bug?
This is a bug report.
What is the current behavior?
When running
yarn install
whenpackage.json
contains a dependency which uses agit+ssh
url andspecifies a branch name with a
#
in the name (common for tracking issues) the installation fails with the following error:Example
package.json
dependency:If the current behavior is a bug, please provide the steps to reproduce.
npm init -y
.package.json
:yarn install
What is the expected behavior?
yarn install
should install my module from the specified branch.Please mention your node.js, yarn and operating system version.
npm -
6.1.0
yarn -
1.7.0
os -
Ubuntu 16.04
(x64)The text was updated successfully, but these errors were encountered: