Skip to content

Import does not work when some packages names could correspond to multiple packages. #983

Closed

Description

Brief description of your issue

winget import fail for some packages because of multiple entries that could match the name of the package.

Steps to reproduce

Create a pacakge.json file with a package (Microsoft.Teams or Microsoft.Office) that has a name that match multple packages.

				{
					"PackageIdentifier": "Microsoft.Teams"
				}
			],
			"SourceDetails" : 
			{
				"Argument" : "https://winget.azureedge.net/cache",
				"Identifier" : "Microsoft.Winget.Source_8wekyb3d8bbwe",
				"Name" : "winget",
				"Type" : "Microsoft.PreIndexed.Package"
			}

Do a winget import package.json

Expected behavior

Installation happen without error.

Actual behavior

Logs can be found in this feedback: https://aka.ms/AAco2lu
image
error is in french but it basically just says Microsoft.Teams name match multiple packages.

Environment

[winget --info]
Windows Package Manager v0.4.11391
Windows: Windows.Desktop v10.0.19042.985
Package: Microsoft.DesktopAppInstaller v1.11.11391.0

Any other software?

Activity

  1. ghost added
    Needs-Triage
    on May 23, 2021
  2. added
    Issue-Feature
    Issue-Bug
    and removed
    Needs-Triage
    Issue-Feature
    on May 24, 2021
  3. added this to the milestone on May 24, 2021
  4. denelon commented on May 25, 2021

    @denelon
    Collaborator

    We haven't reproduced this issue yet. We're going to look into this further, and may add logging and see if we can reproduce. If not, we will likely ask for you to submit Feedback https://aka.ms/winget-feedback.

  5. TechWatching commented on May 25, 2021

    @TechWatching
    Author

    As indicated in the issue description, you can already find my feedback with the logs here.
    image
    Tell me if you need more info.

  6. denelon commented on May 25, 2021

    @denelon
    Collaborator

    Alexandre Nédélec (@TechWatching) I was mentioning that we may need to add "more" logging (in a newer version) and get feedback after that point. Sorry for the confusion.

  7. Nollknolle commented on Jun 28, 2021

    @Nollknolle

    Same issue

  8. ghost added
    In-PR
    on Sep 16, 2021
  9. ghost removed
    In-PR
    on Sep 24, 2021
  10. modified the milestones: , v1.2 Client, v1.1-Client on Oct 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Issue-Bug

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions