-
Notifications
You must be signed in to change notification settings - Fork 907
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
Unnecessarily reinstalling when updating #3592
Comments
Please go back and add the full output log. Without that we won't be able to look at the issue. |
This comment has been minimized.
This comment has been minimized.
@mio-19 Can you go back and that to the description and delete your comment? Please ensure you are using code blocks (starting with three backticks and ending with three backticks). |
This comment has been minimized.
This comment has been minimized.
@mio-19 when raising an issue, there are instructions to tell you what to do. Add the logs to a gist and go back to the original description and add the link to it. |
I am very sorry for that. Now it is fixed |
So I think I have a reproduction using our existing testing packages: # On the vagrant box in the tests directory after it's stood up run:
choco source add -n local -s 'C:\Users\vagrant\AppData\Local\Temp\chocolateyTests\packages'
choco source disable -n chocolatey
choco install hasdependency --version 1.0.1
# Pin the package so it can't be upgraded as we do have newer versions available.
choco pin add -n hasdependency
choco upgrade isexactversiondependency This is tangentially related to #3461 which we fixed in 2.4.0 where a downgrade could be caused. However, it's not causing a downgrade it's causing a reinstall. An additional check should be added to ensure we're not reinstalling a package without |
Checklist
What You Are Seeing?
When I am doing choco upgrade all:
What is Expected?
No upgrade
How Did You Get This To Happen?
System Details
Name Value
PSVersion 5.1.26100.2161
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.26100.2161
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
2.4.1
Chocolatey v2.4.1
0 packages installed.
Did you know Pro / Business automatically syncs with Programs and
Features? Learn more about Package Synchronizer at
https://chocolatey.org/compare
Installed Packages
Output Log
https://gist.github.com/mio-19/6635f593a2bf9a78177346f72dc91b45
Additional Context
No response
The text was updated successfully, but these errors were encountered: