microsoft / microsoft/winget-cli

Platform migration or fixed platform installer feature

Open
#3,528 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area-Matching Issue-Feature
Dominant language
C++
Stars
26.4k
Forks
1.8k
Avg merge
1d 11h
Merged PRs (30d)
15

Description

Description of the new feature / enhancement

Azure CLI provides x64 binary from 2.50(ref).
But many clients installed x86 binary azure cli.
In this case, winget upgrade trying to install x64 installer and failed to install.

(6/6) 見つかりました Microsoft Azure CLI [Microsoft.AzureCLI] バージョン 2.51.0
このアプリケーションは所有者からライセンス供与されます。
Microsoft はサードパーティのパッケージに対して責任を負わず、ライセンスも付与しません。
ダウンロード中 https://azcliprod.azureedge.net/msi/azure-cli-2.51.0-x64.msi
  ██████████████████████████████  51.7 MB / 51.7 MB
インストーラーハッシュが正常に検証されました
パッケージのインストールを開始しています...
インストーラーが終了コードで失敗しました: 1603

(sorry, Windows locale is ja-jp)

IMHO,

  1. If already installed binary is x86, keep to install x86 binary(default).
  2. winget shows "platform unmatched" warning to install after user opt-in, change platform(x86->x64, x64->arm64)
Proposed technical implementation details

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing an upgrade from an x86 Azure CLI installation and trace how winget selects the installer platform. Compare the requested behaviors for retaining x86 and opting into x64 or ARM64, then identify the relevant platform-selection and installer tests. Done means the upgrade behavior is defined, implemented, and covered for the affected architecture transitions.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, cpp
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.