-
Notifications
You must be signed in to change notification settings - Fork 24
Updating packages do not respect configured DependencyVersion #30
Copy link
Copy link
Open
Labels
BugIssues where something has happened which was not expected or intended.Issues where something has happened which was not expected or intended.
Description
What You Are Seeing?
When we are updating/upgrading packages through the package manager handler, there is a call to the UpdatePackage method.
In this method, the configured DependencyVersion is not passed along to the different walkers being used in this method, which causes dependencies to be resolved to the lowest available version.
What is Expected?
Dependencies should be resolved in the same way as we resolve direct calls to OData API in Chocolatey, to achieve this we need NuGet.Core to pass along whatever we have configured as the DependencyVersion to the walkers it uses when resolving dependencies (both locally installed, and new remote packages).
How Did You Get This To Happen? (Steps to Reproduce)
- This was found during a debugging session when working on fixing a problem where packages that had SxS installations couldn't be installed, this was caused by it picking up the lower version than what it believed was installed.
System Details
- OS Build (In PowerShell run
[System.Environment]::OSVersion.version.tostring()): Windows 10 - Windows PowerShell version (Run:
$PSVersionTable): PSv5 - Chocolatey version (Run
choco --version): Choco vNext
Output Log
N/A
Related Issues
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
BugIssues where something has happened which was not expected or intended.Issues where something has happened which was not expected or intended.