microsoft / microsoft/winget-cli
The Microsoft Store source is added even if the Microsoft Store isn't available.
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 26.4k
- Forks
- 1.8k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 15
Description
Brief description of your issue
If you're on a version of Windows that doesn't have the Microsoft Store (LTSC, Server, the weird build Sandbox runs), winget adds the Microsoft Store source even though you can't use it since you can't sign in.
Steps to reproduce
- Install winget on Windows Sandbox (or real LTSC).
- Run
winget install solitaire. - Note that it doesn't work since you aren't signed in.
- Try to go sign in, and remember that you don't have the Microsoft Store so you can't do that.
Expected behavior
Either the Microsoft Store source won't be added at all so the searches make more sense, or it will do the install without auth (as that's the same behavior that the Microsoft Store app has for free apps).
Actual behavior
Environment
[winget --info]
Windows: Windows.Desktop v10.0.22000.194
Package: Microsoft.DesktopAppInstaller v1.16.12653.0
Any other software?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source file or test is named. Start by reproducing the issue with winget install solitaire on Windows Sandbox or an affected LTSC system, then trace how the Microsoft Store source is added and how authentication is handled. Done means the source is not offered when the Store is unavailable, or the described unauthenticated free-app install works.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- cli, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100