-
Notifications
You must be signed in to change notification settings - Fork 906
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
'choco install --version MAJOR.MINOR' installs MAJOR.MINOR.0 instead of latest patch #1874
Comments
I would say that is expected. |
I disagree, if I specified |
A full version would be a 4 part version, meaning that you would have needed to specify
That is only true if the software actually follows semver, I have seen plenty of softwares that do not. Which adds breaking changes both in minor, patch and build versions.
If going by the semver v2, then minor releases should also be non-breaking. The only accepted (after v 1.0) to include breaking changes is major releases (1.0, 2.0, 3.0, etc), however as I mentioned before not all software developers follow semver v2 (or even v1) But lets get back on topic, as I already mentioned. The version Now, with this said, I would love to see a way to specify a version range that you would want to install (for instance similar to how npm/yarn do this. Using the format Allowing version ranges is tracked over here though (but with a different format): #800 |
Chocolatey supports semver 1, so just wanted to clear that up. 👍 |
Chocolatey does not support calling part of a version on the command line and having it find the latest in that range. So it is correct that if you call for 1.14, that is equal to 1.14.0 and 1.14.0.0, thus that is what you should get back, not 1.14.3. Bumping to support SemVer2 won't change that aspect. |
Duplicate of #800 |
@bergmeister from what you described, this sounds like #800. If you believe it is different, please let me know. Otherwise please subscribe to that issue. This issue is now linked to that one as well so the conversation here will be take into account when that is worked on. 👍 |
Ok, thanks for the feedback and the provided details 😊 |
How can I install latest Python 3.9 ?
If I have to go to Python's website to check what is the latest 3.9 version, what is the point of using choco? I can just use website to update my Python. I thought that choco is made for easy managing software installations from command line. |
@rafrafek That's not how Chocolatey works. My suggestion would be to ask a question over at https://github.com/chocolatey/choco/discussions as this issue is closed. |
I know that chocolatey does not support semantic versioning as per issue #1610 but despite that I'd still expect that chocolatey picks the latest patched version when the patch version is not specified.
Example:
choco install kubernetes-cli --version=1.14
Expected: Installs version
1.14.3
, which is the latest patched version.Actual: Installs
1.14.0
.The text was updated successfully, but these errors were encountered: