yarnpkg/yarn

`upgrade-interactive` always shows dependency installed via Git as outdated

Open

#4.896 geöffnet am 10. Nov. 2017

Auf GitHub ansehen
 (8 Kommentare) (2 Reaktionen) (1 zugewiesene Person)JavaScript (41.514 Stars) (2.731 Forks)batch import
cat-buggood first issuehelp wantedtriaged

Beschreibung

When running the following in an empty directory:

yarn init
yarn add https://github.com/timm-gs/pixelmatch
yarn upgrade-interactive

What is the current behavior?

Yarn shows the just added package as outdated. Same behavior on future attempts after upgrading. (Does not change yarn.lock)

What is the expected behavior?

I would expect yarn to know that the package / Git repo did not change and hence not offer to upgrade it.

Please mention your node.js, yarn and operating system version.

$ git --version
git version 2.15.0

$ node -v
v6.12.0

$ yarn -v
1.3.2

$ uname -a
Darwin MacBook-Pro.local 16.7.0 Darwin Kernel Version 16.7.0: Wed Oct  4 00:17:00 PDT 2017; root:xnu-3789.71.6~1/RELEASE_X86_64 x86_64

Contributor Guide