Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-27122

nuget.exe 'list' command doesn't work with NuGet groups


    • Type: Bug
    • Status: New
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.30.0
    • Fix Version/s: None
    • Component/s: NuGet, nuget-v3
    • Labels:
    • Environment:
      docker container, the host is in CentOs 7.7



      We have 3 NuGet Repositories:

      1) Hosted NuGet Repository, which named 'kontur-nuget'

      2) Proxy repo from https://api.nuget.org/v3/index.json which named 'nuget.org-proxy-v3'

      3) NuGet group which contains hosted repository and proxy from nuget.org called 'nuget'

      Often our teams want to use NuGet CLI to list packages. nuget group can't work with it at all.

      Let's reproduce:

      NuGet.org contains a bunch (about 91) packages with name that starts with 'Vostok'.

      Let's try to find it with nuget.exe and set the source directly to https://api.nuget.org/v3/index.json

      Well, it works fine.

      Let's try to do the same with the source pointing to the nexus group called 'nuget' and which contains a proxy from nuget.org and hosted repo.

      The same thing if we are trying to list some of the hosted packages

      But this package is present in Nexus hosted repo

      –©Okay, let's try to find these package directly from hosted repo called 'kontur-nuget'

      And it works.

      The NuGet 'list' command works as coded here: https://github.com/NuGet/NuGet.Client/blob/97311b5cb48d38402b49fd41a6384b11db7dd453/src/NuGet.Core/NuGet.Commands/ListCommand/ListCommandRunner.cs#L26

      So the question is: Is this a bug or its normal behavior that the nexus group doesn't list packages from the group repo?

      I understand that the nexus group is some sort of collection of repositories. But nuget.exe can work with multiple sources, but not in these case, cause it's thought that this group URL is one source.





            Unassigned Unassigned
            Dimis Dmitry
            Last Updated By:
            Joe Tom Joe Tom
            0 Vote for this issue
            4 Start watching this issue


              Date of First Response: