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!

    Bug: namespaced npm packages don't work correctly

    Scheduled Pinned Locked Moved Support
    progetbugnpm
    4 Posts 2 Posters 13 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.
    • ? This user is from outside of this forum
      Guest
      last edited by

      When we upload a namespaced package @foo/bar the npm information are wrong in ProGet :

      • Requesting http://proget/npm/feed/-/all list bar as a package. Worse if we really have a non-namespaced package bar (coming from a connected feed for example) the namespaced package hide it.
      • Accessing http://proget/npm/feed/bar doesn't work (If there is a non-namespaced package named bar it return it)
      • This dummy bar package isn't shown in the UI (The UI correctly show @foo/bar)

      All of this is pretty weird and creating bugs. Especially when ANOTHER ProGet instance is connected to the first one via a connector. The second instance will see a package bar and list it in the UI but clicking on the package show an error (An error occurred getting the package: Package not found.)

      Product: ProGet
      Version: 5.0.0

      1 Reply Last reply Reply Quote 0
      • ? This user is from outside of this forum
        Guest
        last edited by

        This is "by design" (albeit a very poor design), and is how npm scoped packages are actually supposed to work. Scoped packages do not show up in indexes and are only returned in some queries, which makes searching for them in the UI and via connectors basically impossible. You can go to npmjs.org and npm tooling and see very similar behaviors for scoped packages.

        1 Reply Last reply Reply Quote 0
        • ? This user is from outside of this forum
          Guest
          last edited by

          Hi,

          What you are describing isn't what happens in ProGet.

          Scoped packages locally uploaded appear as non-scoped packages.

          Let me take a simple example where ProGet I see a problem :

          • Create a new npm feed
          • Pull @types/lodash from https://registry.npmjs.org into this feed
          • Access /-/all on this feed and notice that the package IS listed but with the WRONG id : lodash instead of @types/lodash. And accessing /lodash returns {"error":"Package not found.","reason":"Package was not found."}

          Searching or listing for packages in such a feed should either not list private packages (As the official repository does) or list them with their correct ID.

          Looking at the official registry I didn't find any case where they send wrong package IDs so it really look like a ProGet bug.

          1 Reply Last reply Reply Quote 0
          • benB Offline
            ben inedo-engineer
            last edited by

            Hello Julien,

            I've filed this as PG-1147 and a fix should be coming in the next version of ProGet.

            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