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

npm groups should merge versions of the same package in different members

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.11, 2.11.1, 2.11.2
    • Fix Version/s: 2.11.3
    • Component/s: NPM
    • Story Points:
      0.5
    • Sprint:
      Sprint 40, Sprint 41

      Description

      Start with this repository setup:

      npm-group
      --- npm-hosted1
      --- npm-hosted2
      

      Configure your registry for *gets* to point at npm-group with proper permissions.

      Using npm publish and a proper publishConfig url in package.json
      deploy package X version 0.0.1 to npm-hosted1
      deploy package X version 0.0.2 to npm-hosted2

      Execute npm view X versions

      This returns one version 0.0.1.

      Reorder the group members:

      npm-group
      --- npm-hosted2
      --- npm-hosted1
      

      Execute npm view X versions

      This returns one version ( 0.0.2 ).

      Expected

      • npm view X versions should list all versions of the same package in all group members

      Notes:

      • NPM groups do not exactly match up with Maven groups
        • NPM packages are flat, there is no hierarchy

      Because of this, should we treat NPM groups like Maven groups?
      We have a concern that we could merge packages together due to the flat nature of NPM that weren't meant to be merged
      Scoped packages was invented to circumvent this problem

      Potentially do:

      • Allow for capability for specific groups to do merge, and instruct the users on how to add hosted/proxy repos to the group

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              rseddon Rich Seddon
              Reporter:
              plynch Peter Lynch
              Last Updated By:
              Peter Lynch Peter Lynch
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response:

                  tigCommentSecurity.panel-title