microsoft / microsoft/winget-cli

Inaccurate default for 'useLatest' in DSC v3 schema

Open
#5,833 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Relevant area(s)

WinGet CLI, DSC Resource

Relevant command(s)

No response

Brief description of your issue
PS C:\> dsc resource schema -r "Microsoft.WinGet/Package" -o pretty-json
{
...
    "useLatest": {
      "default": "false",  // Should be: false instead of "false"
      "description": "Indicate that the latest available version of the package should be installed.",
      "type": "boolean"
    },
...
}

Reference:
https://github.com/microsoft/winget-cli/blob/cf43c6a28d1256dcec185e04eafb09d195503809/src/AppInstallerCLICore/Commands/DscPackageResource.cpp#L25C9-L25C54

Steps to reproduce

Check description section

Expected behavior

Check description section

Actual behavior

Check description section

Environment
Check description section

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 in src/AppInstallerCLICore/Commands/DscPackageResource.cpp at the referenced schema definition for the Microsoft.WinGet/Package resource. Inspect how the useLatest default is emitted, then run dsc resource schema -r "Microsoft.WinGet/Package" -o pretty-json and confirm the boolean default is not quoted.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.