Update registry metadata for portable packages updated outside of WinGet.

Ouverte
#6,479 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 2 jours

Personne n'a encore pris cette issue.

Évaluation

Difficulté
5/5
Temps estimé
Plus d'une semaine
Accessibilité débutants
30/100
Type d'issue
Fonctionnalité
Clarté
À clarifier
Activité
Active
Stack technique
cpp
Domaine
cli

Piste de recherche

Commencez par suivre le flux de mise à niveau de WinGet CLI et la manière dont il lit et met à jour les métadonnées du registre pour les packages portables. Examinez comment le flux compare les versions installées et celles du dépôt, puis identifiez les conditions d’erreur existantes et les tests concernés. La finalisation nécessite un comportement convenu pour les packages portables mis à jour en externe, ainsi qu’une couverture empêchant les downgrades incorrects ou les boucles de mise à niveau.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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

Langage dominant
C++
Étoiles
26.6k
Forks
1.8k
Merge moyen
3 j 10 h
PR mergées (30 j)
41

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de microsoft/winget-cli

Toutes les issues de microsoft/winget-cli

Issues similaires

Plus d'issues C++

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.