Yarn: Yarn should make better use of `dist-tags`

Created on 18 Aug 2017  ·  3Comments  ·  Source: yarnpkg/yarn

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

What is the current behavior?
when installing web3-core yarn is resolving the lerna-temp tag, but should be resolving the latest tag.

If the current behavior is a bug, please provide the steps to reproduce.

yarn add web3-core
What is the expected behavior?

correctly resolve latest tag dependencies

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

yarn 0.27.5
osx 10.12.6
node v8.2.1

cat-compatibility good first issue help wanted triaged

Most helpful comment

I think this is because of our special treatment to version latest. Looks like we should favor dist-tags where as we don't.

All 3 comments

You can probably work around this by installing web3-core@latest, even though this seems like an issue that should be solved.

unfortunately, that doesn't seem to work. It seems to be using the incorrect package.json.

With yarn add web3-core@latest I get the error:

Couldn't find any versions for "web3-utils" that matches "^1.1.0"

The package.json is here: https://unpkg.com/web3-core@latest/package.

But it appears to be installing 1.1.0 package.json: https://unpkg.com/[email protected]/package.json

I think this is because of our special treatment to version latest. Looks like we should favor dist-tags where as we don't.

Was this page helpful?
0 / 5 - 0 ratings