Skip to content
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

Option to exclude specific ID from upgrade --all #2177

Closed
Akitarmo opened this issue May 21, 2022 · 5 comments
Closed

Option to exclude specific ID from upgrade --all #2177

Akitarmo opened this issue May 21, 2022 · 5 comments
Labels
Issue-Feature This is a feature request for the Windows Package Manager client.
Milestone

Comments

@Akitarmo
Copy link

Akitarmo commented May 21, 2022

Description of the new feature / enhancement

I'd like to propose an additional option for "upgrade --all" that would allow to exclude specified programs (most likly via ID) from upgrading, even if a upgrade would be able.

To be clear, I'm speaking of multiple ID capability, not only one:)

The Usecase that prompts me to post this is to exclude programs that are known to have issues.
For Example, Applications like Teams, GOG Galaxy or Discord get detected every time but only throw errors and I'd like to just exlude them from beeing upgraded some times to avoid these Errors.

But it could also be usefull if one's not using a default installation of a Program and needs to follow a specific upgrade way, therefore can't have it beeing upgraded by winget.

@Akitarmo Akitarmo added the Issue-Feature This is a feature request for the Windows Package Manager client. label May 21, 2022
@ghost ghost added the Needs-Triage Issue need to be triaged label May 21, 2022
@Akitarmo
Copy link
Author

Akitarmo commented May 21, 2022

I'm aware of #476 , my proposal would be to have a more temporary solution than pinning a package too.

Maybe I want a package ignored in my weekly running automated upgrade script, but not necessarily in any other use of the "upgrade -all" option.
So other than pinning a package where you would need to store the pinned ID somewhere, this would be more of a search filter for the specific use only.

To be clear, I would love to see both these Options to be implemented simultaneously because they serve different use cases in my understanding.

@Trenly
Copy link
Contributor

Trenly commented May 22, 2022

Seems like #2014 would accomplish the same thing

@Akitarmo
Copy link
Author

Ah, yes, didn't see that sorry.

Would - - nomatch be able to handle multiple Patterns?

@Trenly
Copy link
Contributor

Trenly commented May 22, 2022

Ah, yes, didn't see that sorry.

Would - - nomatch be able to handle multiple Patterns?

Regex can match multiple using the or operator, yes

@Akitarmo
Copy link
Author

Akitarmo commented May 22, 2022

Then I'm closing my Issue as a Duplicate of #2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Feature This is a feature request for the Windows Package Manager client.
Projects
None yet
Development

No branches or pull requests

3 participants