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?
Bug.
What is the current behavior? yarn upgrade-interactive in a repo on a git+ssh:// url as a dependency turns the git+ssh url into a regular registry.yarnpkg.com package instead of the git url.
tl;dr: A deps B.
Initially, A's yarn.lock file looks like this:
"B@git+ssh://git@github.com/magicmark/B.git#v1.0.0":
version "1.0.0"
resolved "git+ssh://git@github.com/magicmark/B.git#8b2a343f1ef4ad1a29a01d4680d955b0b9ed0aa5"
After doing $ yarn upgrade-interactive, and trying to upgrade to 1.0.1, the lockfile looks like this:
B@^0.0.1:
version "0.0.1"
resolved "https://registry.yarnpkg.com/B/-/B-0.0.1.tgz#6585073338a033249060fde993d9815a909443bb"
If the current behavior is a bug, please provide the steps to reproduce.
There is an unfortunate conflict between "text": "github:requirejs/text#latest", and the text npm package that makes this issue a bit worse - I've run into it using Aurelia but I'd guess it could happen to anyone.
It happens with yarn upgrade as well as upgrade-interactive.
yarn upgrade should be deferring to package.json for source. I'm not sure how upgrade-interactive works but I hope it uses yarn upgrade under the hood.
Yeah, it seems that upgrade-interactive is currently only using the displayed version for informational purposes. It internally runs yarn add <package-name>, which automatically bumps the version to the latest available in the registry (which of course doesn't work for exotic packages, such as git or file:).
Do you want to request a feature or report a bug?
Bug.
What is the current behavior?
yarn upgrade-interactive
in a repo on a git+ssh:// url as a dependency turns the git+ssh url into a regular registry.yarnpkg.com package instead of the git url.tl;dr:
A deps B.
Initially, A's yarn.lock file looks like this:
After doing
$ yarn upgrade-interactive
, and trying to upgrade to 1.0.1, the lockfile looks like this:If the current behavior is a bug, please provide the steps to reproduce.
$ yarn install
$ yarn upgrade-interactive
and upgrade BWhat is the expected behavior?
Please mention your node.js, yarn and operating system version.
OS X 10.11.6
The text was updated successfully, but these errors were encountered: