cChoco icon indicating copy to clipboard operation
cChoco copied to clipboard

cChoco uninstalls, then reinstall if package is out of date.

Open lukegriffith opened this issue 7 years ago • 7 comments

https://github.com/chocolatey/cChoco/blob/6b8f5a5b56709c58c4b40b0290ff6e75e9c02898/DSCResources/cChocoPackageInstall/cChocoPackageInstall.psm1#L99

Resource, when provided with a version number and an out of date package will uninstall the current version and reinstall the newer - leading to unwanted behavior with some

lukegriffith avatar Oct 03 '17 09:10 lukegriffith

This may cause some weirdness when you use cChoco to keep Chocolatey itself updated.

ferventcoder avatar Oct 06 '17 03:10 ferventcoder

Have a hot fixed branch of this, but without a complete refactor the patch adds another call to choco list what's isn't very optimised.

lukegriffith avatar Nov 11 '17 11:11 lukegriffith

@lukemgriffith we can get started on looking at the PR and move from there to make it more optimized.

ferventcoder avatar Nov 13 '17 18:11 ferventcoder

https://github.com/chocolatey/cChoco/pull/92 might help make my fix be more optimized.

lukegriffith avatar Nov 13 '17 19:11 lukegriffith

@lukemgriffith #92 has been merged.

pauby avatar Mar 06 '19 21:03 pauby

The uninstall / reinstall behavior is causing problems for my project as well. @lukemgriffith Is there anything I can do to help with your hotfix? Or is this issue truly up for grabs if I wanted to take a crack at it?

alphakilo45 avatar Nov 20 '19 18:11 alphakilo45

Been a long time since I've worked on this. I cant remember anything of my PR please go ahead :)

lukegriffith avatar Nov 21 '19 11:11 lukegriffith