Add —-source winget to winget commands to prevent winget installing yt-dlp from the Microsoft Store #56
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
By default winget will search both the Microsoft Store and the Winget manifests. Whilst the winget manifest repo is moderated (importantly, manifests presumably have to use the official binaries), I highly doubt that the Microsoft Store has the same level of moderation (for a start, it uses binaries instead of manifests). Whilst I’m not aware of any packages named yt-dlp in the Microsoft Store, it’s best to avoid that risk all together
EDIT: I’m not sure which order it prioritises sources in, so it’s possible that it prioritises the winget manifests. Either way it's best to manually specify it