[Package Issue]: MSYS2.MSYS2 prompts 'require explicit targeting for upgrade' but fails with UpgradeBehavior: deny
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 32/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- github, yaml
- Ambito
- devtools
Direzione di ricerca
Read the MSYS2.MSYS2 manifest and the related winget-cli issue 4299 mentioned in the proposal. Determine how RequireExplicitUpgrade and UpgradeBehavior: deny interact, then assess the proposed options for preventing misleading upgrade prompts. Done means the issue has a decided behavior and a concrete follow-up; the issue does not name a manifest path or test.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Checklist
- I have searched for my issue and not found a work-in-progress/duplicate/resolved issue.
- I have not been informed if the issue is resolved in a preview version of the winget client.
Category
Package Issue (incorrect metadata, upgrade broken, etc.)
Package Identifier
MSYS2.MSYS2
Package Version
All versions (e.g. 20260611 -> 20260927)
Description
When running winget upgrade --all, WinGet reports that an update for MSYS2.MSYS2 is available and prompts the user that explicit targeting is required:
The following packages have an upgrade available, but require explicit targeting for upgrade:
Name Id Version Available Source
-------------------------------------------
MSYS2 MSYS2.MSYS2 20260611 20260927 winget
However, running winget upgrade MSYS2.MSYS2 as instructed fails with:
Non è possibile aggiornare il pacchetto con WinGet. Utilizzare il metodo fornito dall'autore per aggiornare il pacchetto.
(English: Cannot upgrade package with WinGet. Please use the method provided by the author to upgrade the package.)
Steps to Reproduce
- Have MSYS2 installed via WinGet (
winget install MSYS2.MSYS2). - Run
winget upgrade --all. - Notice MSYS2 is listed under "require explicit targeting for upgrade".
- Run
winget upgrade MSYS2.MSYS2.
Cause & UX Friction
The manifest combines RequireExplicitUpgrade: true with UpgradeBehavior: deny.
Because of RequireExplicitUpgrade: true, WinGet advertises to the user that the package can be upgraded if targeted explicitly. But when targeted explicitly, UpgradeBehavior: deny blocks the operation.
Since MSYS2 updates via pacman -Syu and does not update the Windows registry DisplayVersion, users are stuck with a permanent, misleading "upgrade available" prompt unless they manually discover and run winget pin add --id MSYS2.MSYS2.
Proposed Action
- Discuss whether packages with
UpgradeBehavior: denyshould be pinned automatically upon installation or ifRequireExplicitUpgrade: trueshould be reconsidered alongside https://github.com/microsoft/winget-cli/issues/4299 so users are not told to explicitly target an upgrade that is guaranteed to be denied.
- Lingua principale
- Nessun dato sulla lingua
- Stelle
- 11.3k
- Fork
- 12.2k
- Merge medio
- 2h 16m
- PR unite (30g)
- 566
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di microsoft/winget-pkgs
-
[Package] KDE.KDEConnect 26.08.2 installer writes DisplayVersion=26.08.1, causing upgrade loopApertaNeeds-Triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
microsoft/winget-pkgs#476382 ·
I maintainer di solito rispondono entro 1 giorno
-
Help-Wanted Needs-Triage Package-Update
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
microsoft/winget-pkgs#476267 ·
I maintainer di solito rispondono entro 1 giorno
-
Help-Wanted Needs-Triage Package-Update
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
microsoft/winget-pkgs#476209 ·
I maintainer di solito rispondono entro 1 giorno
-
[Update Request]:ApertaHelp-Wanted Needs-Triage Package-Update
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 83/100
microsoft/winget-pkgs#476105 ·
I maintainer di solito rispondono entro 1 giorno
-
[Update Request]: Add ARM build for Iterate.CyberduckCLIForse già presa @UnownBot l’ha presa oggi. ApertaHelp-Wanted Needs-Triage Package-Update
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
microsoft/winget-pkgs#475655 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di microsoft/winget-pkgs
Issue simili
-
good first issue help wanted python up-for-grabs
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
andrewsiah/agentswarm-data-tasks#121 ·
I maintainer di solito rispondono entro 1 giorno
-
agent:either area:adapters priority:p3 type:chore
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
jojo-stand36/Tacet#251 ·
I maintainer di solito rispondono entro 1 giorno
-
environments
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
calkit/calkit#2056 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
bug needs-triage P1 tier:1-mechanical
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
krakenhavoc/cmd_and_ctrl#5434 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement good first issue
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 95/100