Skip to content

Yarn upgrade-interactive check should ignore exact or subversion dependencies #3500

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

Closed
mattpilott opened this issue May 25, 2017 · 3 comments

Comments

@mattpilott
Copy link

What is the current behavior?

Currently if you have something like this in your dev dependencies:
"clean-css": "~3.4.26" or "clean-css": "=3.4.26"
it will still offer an update to 4.x.x

What is the expected behavior?

I would expect yarn upgrade-interactive to not offer the update at all if i have set = and only offer subversion updates if i supply ~

Please mention your node.js, yarn and operating system version.
node v6.10.3
yarn v0.24.6
macOS 10.12.5

@rally25rs
Copy link
Contributor

The docs aren't entirely clear, but upgrade-interactive has always ignored the package.json specified version ranges.

IMO it's been the most confusing part of Yarn;

  • yarn upgrade - uses package.json version range
  • yarn upgrade <package> - ignores package.json version range
  • yarn upgrade-interactive - ignores package.json version range

Perhaps this should be a feature request; upgrade-interactive should have a mode/flag for using or ignoring the version range in package.json.

@mattpilott
Copy link
Author

Okay good to know, it should watch the package.json range by default IMO, don't think I can label though so we shall leave it to the pro's

@bestander
Copy link
Member

Should be resolved in yarnpkg/rfcs#71

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants