Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

    If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

    Incompatibility between Gitlab Package Registry and Proget Nuget Connector

    Scheduled Pinned Locked Moved Support
    4 Posts 2 Posters 15 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M Offline
      mayorovp_3701
      last edited by

      Steps to reproduce:

      1. create group and project on gitlab
      2. push some nuget packages to that project package registry on gitlab
      3. create deploy token with "read_package_registry" scope on gitlab
      4. create nuget feed on proget
      5. create nuget connector for that feed on proget that referenced group package registry on gitlab using created deploy token

      Expected result:

      Nuget packages from gitlab are visible on proget feed

      Actual result:

      Unsupported API: missing "PackageBaseAddress" resource in service index.

      Extra info:

      Gitlab package registry use absolute URLs for packages, so base url is not required for URL resolution.

      dean-houstonD 1 Reply Last reply Reply Quote 0
      • dean-houstonD Offline
        dean-houston inedo-engineer @mayorovp_3701
        last edited by

        Hi @mayorovp_3701,

        Based on the message, it appears to be a bug/problem with the GitLab API. It's indicating that the required PackageBaseAddress endpoint is not present in the service index.

        Can you share the "service index" (i.e. the index.json) file? It should be present at the root of the API and look something like this: https://api.nuget.org/v3/index.json

        -- Dean

        1 Reply Last reply Reply Quote 0
        • M Offline
          mayorovp_3701
          last edited by

          Yes, PackageBaseAddress is required by schema and missing in Gitlab Package Registry. But dotnet sdk can download packages from it while Proget cannot.

          dean-houstonD 1 Reply Last reply Reply Quote 0
          • dean-houstonD Offline
            dean-houston inedo-engineer @mayorovp_3701
            last edited by

            Hi @mayorovp_3701,

            This is a bug you should definitely report to GitLab -- it's clearly required by the API and all other registries support it. Without that API defined, we have to "make guesses" based on undocumented conventions (i.e. /v3-flatcontainer/{id}), which causes headaches down the line. That's why there's an API contract :)

            I don't know how/why it works with dotnet sdk -- perhaps it's using a different endpoint, or maybe it's not actually working and just going to NuGet.org. Whatever the case, it doesn't make sense for us to build workarounds for easily-fixable bugs on GitLab when other vendors seem to follow the API contract.

            -- Dean

            1 Reply Last reply Reply Quote 0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • 1 / 1
            • First post
              Last post
            Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation