chocolatey / choco

Chocolatey - the package manager for Windows
https://chocolatey.org
Other
10.05k stars 890 forks source link

Upgrade shouldn't run if package constraints resolve to the installed version #3404

Open iki opened 3 months ago

iki commented 3 months ago

Checklist

What You Are Seeing?

>>> choco upgrade --yes --skip-if-not-installed dart-sdk

You have dart-sdk v3.3.0 installed. Version 3.3.1 is available based on your source(s).
[NuGet] One or more unresolved package dependency constraints detected in the Chocolatey lib folder. All dependency constraints must be resolved to add or update packages. If these packages are being updated this message may be ignored, if not the following error(s) may be blocking the current package operation: 'sass 1.71.1 constraint: dart-sdk (= 3.3.0)'
Re-attempting package dependency resolution using additional available package information...
[NuGet] One or more unresolved package dependency constraints detected in the Chocolatey lib folder. All dependency constraints must be resolved to add or update packages. If these packages are being updated this message may be ignored, if not the following error(s) may be blocking the current package operation: 'sass 1.71.1 constraint: dart-sdk (= 3.3.0)'
Progress: Downloading dart-sdk 3.3.0... 100%

dart-sdk v3.3.0 [Approved]
dart-sdk package files upgrade completed. Performing other installation steps.

What is Expected?

>>> choco upgrade --yes --skip-if-not-installed dart-sdk

You have dart-sdk v3.3.0 installed. Version 3.3.1 is available based on your source(s).
[NuGet] One or more unresolved package dependency constraints detected in the Chocolatey lib folder. All dependency constraints must be resolved to add or update packages. If these packages are being updated this message may be ignored, if not the following error(s) may be blocking the current package operation: 'sass 1.71.1 constraint: dart-sdk (= 3.3.0)'
Re-attempting package dependency resolution using additional available package information...
[NuGet] One or more unresolved package dependency constraints detected in the Chocolatey lib folder. All dependency constraints must be resolved to add or update packages. If these packages are being updated this message may be ignored, if not the following error(s) may be blocking the current package operation: 'sass 1.71.1 constraint: dart-sdk (= 3.3.0)'

You already have dart-sdk v3.3.0 installed.

How Did You Get This To Happen?

Installed sass package, that has fixed version of dart-sdk dependency.

Later, dart-sdk was updated, so my choco outdated --ignore-pinned -r listed it and passed to choco upgrade --yes --skip-if-not-installed [packages]. The same would happen with choco upgrade --all --yes.

The same happens when upgrading any package with newer available version, but constraints restricting it to the currently installed version.

System Details

Installed Packages

sass
dart-sdk

Output Log

https://gist.github.com/iki/7b10b95c0671c325f2c890355f39e739

Additional Context

No response

pauby commented 3 months ago

Please add the log as gist and add a link to it in the comment above.

iki commented 3 months ago

@pauby Added current https://gist.github.com/iki/7b10b95c0671c325f2c890355f39e739 output log

github-actions[bot] commented 2 months ago

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? This issue will be closed in 14 days if it continues to be inactive.

github-actions[bot] commented 1 month ago

Dear contributor,

As this issue seems to have been inactive for quite some time now, it has been automatically closed. If you feel this is a valid issue, please feel free to re-open the issue if / when a pull request has been added. Thank you for your contribution.