microsoft / microsoft/winget-cli
Inaccurate default for 'useLatest' in DSC v3 schema
Open
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"
},
...
}
Steps to reproduce
Check description section
Expected behavior
Check description section
Actual behavior
Check description section
Environment
Check description section
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
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