WinGet is the Windows Package Manager. This project includes a CLI (Command Line Interface), PowerShell modules, and a COM (Component Object Model) API (Application Programming Interface).
I created .winget file pointing to private store app. This will fail the Store access from winget, because i need to log in to the store.
Error:
Apply :: WinGetPackage
The configuration unit failed while attempting to test the current system state.
An error occurred while searching for packages: CatalogError
My issues:
1) CatalogError: This is pretty cryptic. Why not just say we cannot access the Source if that is the issue.
2) ""
Why make me do extra work when winget can tell me:
OPTIONS
A)
See C:\Users\WDAGUtilityAccount\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir\WinGet-2024-04-11-09-03-54.698.log
for additional details.
B) suggest, Re-Run the command with the --Logs and --verbose-logs for additional details.
C) Simply tell the user what is wrong so they do not need to look at the log.
![image](https://github.com/microsoft/winget-cli/assets/2146880/3b46623a-c9e6-4df3-bdac-88c121314949)
### Steps to reproduce
In SandBox, run the following .winget once you have updated the id to be canary build of a store app that requires permission
properties:
configurationVersion: 0.2.0
resources:
- directives:
allowPrerelease: true
description: private app
resource: Microsoft.WinGet.DSC/WinGetPackage
settings:
id:
source: msstore
### Expected behavior
Better error handling. see suggestions
### Actual behavior
![image](https://github.com/microsoft/winget-cli/assets/2146880/733cfe00-dc9c-4475-a939-b1b00c4382b7)
### Environment
```shell
C:\Users\WDAGUtilityAccount>winget --info
Windows Package Manager v1.7.10861
Copyright (c) Microsoft Corporation. All rights reserved.
Windows: Windows.Desktop v10.0.26100.1000
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.22.10861.0
```
Brief description of your issue
I created .winget file pointing to private store app. This will fail the Store access from winget, because i need to log in to the store.
Error: Apply :: WinGetPackage The configuration unit failed while attempting to test the current system state. An error occurred while searching for packages: CatalogError