Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export reports Installed package is not available from any source even for winget installed apps #4269

Closed
craftzneko opened this issue Mar 13, 2024 · 3 comments
Labels
Issue-Docs It's a documentation issue that really should be on MicrosoftDocs
Milestone

Comments

@craftzneko
Copy link

Brief description of your issue

I believe this is the same issue logged and closed here #1274

Steps to reproduce

Winget export -o=file.json

Expected behavior

Export with sources

Actual behavior

Example Github desktop was installed through winget as shown when doing list

image

Yet my export shows all applications as having no source and as you can see github desktop now source

image

Environment

Windows: Windows.Desktop v10.0.19045.4046
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.22.10582.0

Winget Directories
-----------------------------------------------------------------------------------------------------------------------
Logs                               %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\Diag…
User Settings                      %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\sett…
Portable Links Directory (User)    %LOCALAPPDATA%\Microsoft\WinGet\Links
Portable Links Directory (Machine) C:\Program Files\WinGet\Links
Portable Package Root (User)       %LOCALAPPDATA%\Microsoft\WinGet\Packages
Portable Package Root              C:\Program Files\WinGet\Packages
Portable Package Root (x86)        C:\Program Files (x86)\WinGet\Packages
Installer Downloads                %USERPROFILE%\Downloads

Admin Setting                             State
--------------------------------------------------
LocalManifestFiles                        Disabled
BypassCertificatePinningForMicrosoftStore Disabled
InstallerHashOverride                     Disabled
LocalArchiveMalwareScanOverride           Disabled
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Triage Issue need to be triaged label Mar 13, 2024
@Trenly
Copy link
Contributor

Trenly commented Mar 13, 2024

The export process doesn’t associate the packages with any specific source in the output JSON. What it does is export a list of packages that it can find from any source you have configured and also exports the details of those sources. If you scroll to the bottom of the JSON file, you should see a section specifically for sources.

When an import is run, it will first set up the sources specified in the file and then will run a winget install for each of the identifiers specified.

@microsoft-github-policy-service microsoft-github-policy-service bot added Issue-Docs It's a documentation issue that really should be on MicrosoftDocs and removed Needs-Triage Issue need to be triaged labels Mar 13, 2024
@craftzneko
Copy link
Author

Ahh i see so its defining packages and then the source beneath. Fair enough that makes sense was just thrown by the messages appearing. Is there a way to supress them?

@Trenly
Copy link
Contributor

Trenly commented Mar 13, 2024

Ahh i see so its defining packages and then the source beneath. Fair enough that makes sense was just thrown by the messages appearing. Is there a way to supress them?

Not yet, but it is being tracked by

@denelon denelon added this to the 1.8 Client milestone May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Docs It's a documentation issue that really should be on MicrosoftDocs
Projects
None yet
Development

No branches or pull requests

3 participants