microsoft / microsoft/winget-cli

Old version of Android Studio is showing as installed when using "winget upgrade" command.

Open
#3,515 16 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Brief description of your issue

When running "winget upgrade" command, older Android Studio version shows up as installed despite latest already been installed. Which results in the reinstallation of the same version of the already installed software when using "winget upgrade --all" command.

Terminal:

Screenshot 2023-08-10 215931

Installed version:

Screenshot 2023-08-10 220637

Screenshot 2023-08-10 220006

Steps to reproduce
  1. Run winget upgrade
  2. Run winget upgrade --all
Expected behavior

It should not upgrade or show any software which has latest version already installed, when running the commands "winget upgrade" or "winget upgrade --all".

Actual behavior

It shows older version of the software under "Version", and installed version under "Available" when running "winget upgrade" command.

Screenshot 2023-08-10 215931

Resulting in downloading and reinstalling of the already installed version when running "winget upgrade -all" command.

Environment
Windows Package Manager VI. 5.2201
Windows: Windows. Desktop VIO .0.22631.2129
Package: Microsoft. DesktopAppInsta11er VI. 20.2201.0

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 the issue with winget upgrade and winget upgrade --all using the Android Studio installation described in the report. Compare the installed and available versions; done means an already-current Android Studio version is absent from upgrade results and is not reinstalled.

Written by the indexing model from the issue text.

Assessment

Tech stack
android
Domain
cli
Issue type
Bug
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.