chocolatey / chocolatey/choco

Option to ignore downgrade warning failures

Open
#1,350 0 comments 2 reactions 0 assignees View on GitHub
0 - Backlog Enhancement
Dominant language
C#
Stars
11.5k
Forks
960
PR merge metrics
No merged PRs in 30d

Description

Add an option so that when you want to set a script to install a minimum version and a newer version is installed, it will not throw a failure on that package.

`choco upgrade -y --version ` should effectively have a way to noop if there is already a newer version of that package.

Something like `--ignore-downgrade-errors`

Contributor guide

Open the contributing guide

Research direction

Start by tracing the `choco upgrade` command and the downgrade warning failure path. Add the requested option so a package with an installed version newer than the requested minimum does not fail, then verify the behavior for `--version ` with and without the option.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
cli, devtools
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.