microsoft / microsoft/winget-cli

WinGet configuration fails on some msstore packages

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

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

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.