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
Installing a prerelease package using --version fails to resolve prerelease dependencies #1575
Comments
IMHO: choco should install the dependencies specified and not attempt any "transcription" of them. i.e. if a dependency is specified as a release version, choco installs the release version. If the dependency is specified as a pre-release version, choco installs the pre-release version. So a pre-release package with pre-release dependencies should install those pre-release dependencies because that's what was specified. IMHO It doesn't make sense for choco to install a pre-release package and then also search for pre-released dependencies if they exist. Makes more sense to define the pre-release dependencies in the pre-release package until all are released and the issue becomes moot. Any "transcription" of dependencies would most likely cause unexpected results for packagers pushing pre-release packages using dependencies, as any installed "transcribed" pre-release dependencies seems counterintuitive to their dependency list and most likely in the case of unrelated (they don't own the dependency package) they might not know a pre-release exists. If I understood the original issue, please forgive me and ignore this whole comment post. |
The package where the issue was found did define a prerelease dependency of its own, but it failed to install without |
Thanks. WITH THAT SAID... it seems choco should install whatever version it's damn well told to do -pre or not! :) |
This has been a difficulty for our ops team for distributing release candidate software. We use a main package, like an umbrella kinda like Microsoft does with
If we invoke
If we use As a solution, the ops team must know what changed and invoke the Like @bcurran3 said, if a preview package depends on other preview packages, and they do exist, the expected behavior would be to install them. At least for me, having to explicit set the |
Any progress on this one (any direction)? |
Any news about this? Still having the same issues to manage |
What You Are Seeing?
(I'm fairly certain I've seen it discussed somewhere earlier, but I couldn't find any existing issue, so here it is.)
Given
main-package
with a prerelease version, for example2.0.0-pre
sub-package
, also with a prerelease version, for example1.2.3-pre
invoking
results in failure, with choco complaining "Unable to resolve dependency 'sub-package (= 1.2.3-rc)'.".
On the other hand, if choco is invoked explicitly with
--pre
:installation succeeds
What is Expected?
When told to install a specific package version, when that version is a prerelease, choco should be able to resolve prerelease dependencies, without requiring the user to specify
--pre
explicitly.How Did You Get This To Happen? (Steps to Reproduce)
(source: Disqus comment)
Output Log
https://gist.github.com/jberezanski/8541f715850e387089936b44757083ca
The text was updated successfully, but these errors were encountered: