microsoft/winget-cli

Disable dependency handling

Closed this issue · 4 comments

Relevant area(s)

WinGet CLI

Description of the new feature / enhancement

I don't need it. The implementation is full of bugs and causes more issues than it solves. I keep forgetting to include --skip-dependencies and breaking installed packages. And even when I don't, it's a very wordy flag that's cumbersome to type out every time.

Proposed technical implementation details

IMO dependency handling should be opt-in, similarly to the --accept-source-agreements flag. But at the very least winget should allow the user to opt out of it entirely.

This looks like we should add something to the "settings" file so WinGet's default can be configured either way, then we'd probably need an "--include-dependencies" argument for when its default is "skip", but the user wants to use it for a specific install/upgrade.

Given the implementation above, I think the only missing part here is the "--include-dependencies" or equivalent argument.

Given there is already a setting, I'm going to close this issue, and I've already created the Issue to add an argument.