-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Description
Do you want to request a feature or report a bug?
bug?
What is the current behavior?
Git archive capability checks that URL matches USER@HOSTNAME:PATHNAME
https://github.com/yarnpkg/yarn/blob/master/src/util/git.js#L57
Is it something like ssh://[email protected]/bestander/test-repo.git:/?
The problem is that :PATHNAME does not work with git-archive feature.
Even if the regex matches it will fail git-archive command check and the git.js will fallback to cloning.
Removing :PATHNAME from the regex could be a solution but I am not sure doing only this fixes the issue because supportsArchiveCache stores archive capability per hostname but archive capability also depends on access rights and protocol.
This feature needs a fix + tests.
Please mention your node.js, yarn and operating system version.
Yarn 0.22.0