winget-cli
winget-cli copied to clipboard
Inaccurate default for 'useLatest' in DSC v3 schema
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
~~I don't seem to have dsc. Where do I find it?~~
Also seem unrelated to winget dscv3...
OK, found it:
- https://github.com/PowerShell/DSC