Update registry metadata for portable packages updated outside of WinGet.

Offen
#6,479 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 2 Tagen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Anfängerfreundlichkeit
30/100
Issue-Typ
Feature
Klarheit
Muss geklärt werden
Aktivitätsstatus
Aktiv
Tech-Stack
cpp
Bereich
cli

Rechercherichtung

Beginne damit, den WinGet CLI-Upgrade-Ablauf nachzuverfolgen und zu untersuchen, wie er Registrierungsmetadaten für portable Pakete liest und aktualisiert. Überprüfe, wie der Ablauf installierte Versionen und Repository-Versionen vergleicht, und ermittle anschließend die bestehenden Fehlerbedingungen und die zugehörigen Tests. Für den Abschluss ist ein abgestimmtes Verhalten für extern aktualisierte portable Pakete sowie eine Abdeckung erforderlich, die falsche Downgrades oder Upgrade-Schleifen verhindert.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

Command-Upgrade Issue-Feature Portable
Relevant area(s)

WinGet CLI

Description of the new feature / enhancement

Some "portable" packages have their own internal "update" mechanism. If they get updated, and they were installed by WinGet, the registry metadata doesn't get updated.

This could lead to undesired behavior.

WinGet thinks the package is out of date and needs to be updated.

  • This could be turned into a no-op. If the latest version WinGet knows about matches the installed version, WinGet could update the metadata during the "upgrade" flow.

  • This could lead to a bad outcome if a newer version is installed than what WinGet is aware of and could lead to an upgrade loop in WinGet. This may justify a new "error condition" because WinGet doesn't know how to reason about the installed version. It could also have the "unintended" behavior of installing an older version of the package and clobber the newer one that was installed on the device.

Ideally, the latest version would be available in the WinGet repository, or the portable package could leverage WinGet to handle the upgrade flow to keep the registry metadata in sync. Otherwise, it would be good for the package to distribute an installer rather than a "bare portable executable".

Tools like the Windows App CLI can help build an MSIX packaged application including the binary. This is the ideal case in terms of package management, as Windows understands how to handle the situation, and WinGet isn't trying to keep the registry metadata in sync.

Optionally there are a large number of other supported installer technologies that can be used to build installers.

Proposed technical implementation details

No response

Vorherrschende Sprache
C++
Sterne
26.6k
Forks
1.8k
Ø Merge
3 T. 10 Std.
Gemergte PRs (30 T.)
41

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus microsoft/winget-cli

Alle Issues in microsoft/winget-cli

Ähnliche Issues

Weitere Issues zu C++

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.