-
Notifications
You must be signed in to change notification settings - Fork 224
Support package restore to work with "highest" while following constraints #2657
Comments
We're not going to diverge from the nuget behavior. We currently don't support 1.* but nuget does. So possible we may do something more with wild cards in the future but you should file an issue on nuget as well. |
@davidfowl Opened issue on nuget: NuGet/Home#1360 |
@davidfowl Ok, per the latest comment by @emgarten on the nuget repo (NuGet/Home#1360 (comment)) nuget already dupports that with |
@giggio no promises but we do want to eventually use the nuget code base and have been slowly moving in that direction. |
Ok, at least we know that this will be supported on dnu at some point. |
@davidfowl I see you closed the issue. Is this planned somehow, or tracked elsewhere? Or dropped? |
Dropped, none of these issues are being tracked. I recommend filing an issue on nuget. |
We need to be able to tell dnu (and VS) to restore the highest available version from a dnx package. Right now it always resolves to lowest.
For example, if my app dependes on "[1,2)", this means I depend on at least version 1, and I accept anything up to version 2. But if 1.0.0 and 1.1.0 exist, dnu will always get 1.0.0.
There is no config at this moment that allows dnu to get the highest available version that works with a version spec. A higher version will only be selected if there is another package restricting the dependence to a higher range.
This is really important for package authors for fixing security issues, releasing minors, etc.
Node is a good example on how to work this.
Node allows patch updates with
~
, like~1.0.0
(anything from 1.0.0 to 1.1.0 - not included) and minor updates with^
, like^1.0.0
(anything from 1.0.0 to 2.0.0 - not included).Node also allow for wildcards with the
x
, like1.x
(anything greater or equal to 1.0 and lower than 2).The text was updated successfully, but these errors were encountered: