microsoft / microsoft/winget-cli
WinGet configuration fails on some msstore packages
Open
Nobody has claimed this yet.
Command-Configure
Issue-Bug
- Dominant language
- C++
- Stars
- 26.4k
- Forks
- 1.8k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 15
Description
We've isolated the issue with this one. It's a bug.
The workaround is to put the value for the "id:" in quotes.
# yaml-language-server: $schema=https://aka.ms/configuration-dsc-schema/0.2
# Reference: https://github.com/PowerShell/PowerShell/blob/master/docs/building/windows-core.md
properties:
resources:
- resource: Microsoft.WinGet.DSC/WinGetPackage
id: WindowsTerminal
directives:
description: Install Windows Terminal
allowPrerelease: true
settings:
id: "9N0DX20HK701"
source: msstore
configurationVersion: 0.2.0
Originally posted by @denelon in https://github.com/microsoft/winget-cli/issues/3705#issuecomment-1745196138
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
Reproduce the configuration using the YAML example, first with the msstore package id unquoted and then with it quoted. Compare the two outcomes and trace the failure from the WinGet configuration entry point. Done means the example works with an unquoted id for affected msstore packages, with a regression test covering the behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100