Skip to content
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

Support pinning with SemVer range #1278

Open
flcdrg opened this issue May 1, 2017 · 5 comments
Open

Support pinning with SemVer range #1278

flcdrg opened this issue May 1, 2017 · 5 comments

Comments

@flcdrg
Copy link
Member

flcdrg commented May 1, 2017

I would like to be able to pin a package with a SemVer range.

This would be useful particularly when you want to not upgrade to a newer major version but do upgrade for any new minor versions.

For example if I was using Beyond Compare, but only had a license for v3 then I would not want to take any newer v4.x versions, but if they released a new 3.x then I would want that.

Something like:
choco pin add -n=beyondcompare -version="[3.0,4,0)"

Related

Clickup task.

@ferventcoder
Copy link
Member

I've added this - currently pushing this to 1.x.

There is a nice workaround for this now, you could create a package that takes a dependency on BeyondCompare in that range and install it.

@flcdrg
Copy link
Member Author

flcdrg commented May 2, 2017

Yeah, the dependent package would work, except for if you did a choco upgrade all.

@ferventcoder
Copy link
Member

It could still work - however the NuGet.Core version we have doesn't really manage this aspect very well.

@ferventcoder
Copy link
Member

It would be why it was set up that way for the upgrade all. However I think we could better manage it even in the context of what we have now. Perhaps file an issue?

@ExE-Boss
Copy link

I prefer npm’s SemVer range syntax.

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

No branches or pull requests

4 participants