New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Yarn resolutions only works with fixed versions not dist-tags #6666
Comments
When debugging this with the current code from
This comes from: https://github.com/yarnpkg/yarn/blob/master/src/resolution-map.js#L69-L72
So it looks like it wants to make sure that the resolution points to a valid semver range. This happens before the metadata for the package is loaded, so it wouldn't be easy to just check the actual tags and versions. I'm going to tag this as a |
This is still reproduced 1 year after issue was created. |
Still a problem here in the distant future >:( |
Do you want to request a feature or report a bug?
bug
Yarn resolutions only works with fixed versions, not dist-tags
What is the current behavior?
Yarn installs react@latest not react@next
If the current behavior is a bug, please provide the steps to reproduce.
run the yarn install on the following package.json document
{ "name": "yarn-test", "version": "1.0.0", "license": "ISC", "private": true, "resolutions": { "react": "next" }, "dependencies": { "react": "latest" } }
What is the expected behavior?
Yarn installs react@next not react@latest
Please mention your node.js, yarn and operating system version.
yarn: 1.12.3
node: 8.11.4
os: Windows 10
The text was updated successfully, but these errors were encountered: