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!

    Can Legacy versions (e.g. 1.2.3.4) be used for packages in a ProGet Universal feed?

    Scheduled Pinned Locked Moved Support
    proget
    5 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.
    • D Offline
      dwight.holman_5467
      last edited by

      We are testing the Jenkins plugin to publish a Universal package to ProGet and it only allows versions in the format : x.x.x

      From the documentation I see that NuGet feeds support two different version formats:
      https://inedo.com/support/kb/1157/nuget-version-number-formatting-restrictions

      From the upack command line reference and documentation it looks like Universal packages might also support longer versions. I cannot see any discussion about the version restrictions for universal packages.

      This page indicates longer versions are allowed:

      https://inedo.com/support/documentation/upack/universal-packages/package-identification

      But there is no mention here:

      https://inedo.com/support/documentation/upack/tools-and-libraries/upack-cli

      Is this a bug (or limitation) in the Jenkins Inedo Proget plugin?

      Product: ProGet
      Version: 5.1.3

      1 Reply Last reply Reply Quote 0
      • atrippA Offline
        atripp inedo-engineer
        last edited by

        Universal packages support SemVer2, which is a three-part version number scheme with additional labels for pre-release and build metadata.

        The NuGet "4-part" scheme was proprietary, undocumented, and had very strange quirks and behaviors, which is why NuGet has deprecated it years ago.

        If you absolutely need to use a proprietary/non-standardized version number, then I recommend you to just add it as metadata to the package (_myVersion or _componentVersion) .

        1 Reply Last reply Reply Quote 0
        • D Offline
          dwight.holman_5467
          last edited by

          Thanks for the suggestion - I'd already thought of that. But (not having tried yet) I don't see how it would help.

          The reason for wanting to use a four-part version number is this; Like most software companies we use a branch-merge strategy for product support. For each product support fix we create a branch and assign a version using the 4th number (e.g. 1.2.2.1) indicating revisions on the branch (to ensure all shipped components have distinct version numbers traceable back to the source code). When the branch is merged/closed the new trunk version will be assigned a 'normal' (3-part version number 1.2.3)

          Correct me if I'm wrong, but if ProGet enforces SemVer2 versions for Universal Packages, then we won't be able to post two different versions of a component to a feed. In this case they would have the same package version, but different metadata. Does ProGet Allow that?

          1 Reply Last reply Reply Quote 0
          • atrippA Offline
            atripp inedo-engineer
            last edited by

            A package is uniquely identified by its version, so different package versions will need different numbers. But I think you can use the pre-release labels, at least in some sort of way to do product support?

            Take a look at this video from our recent Hedgehog webinar: Using Semantic Versioning to Overcome Package Deployment Challenges. You can see the whole webinar on the Hedgehog page as well.

            1 Reply Last reply Reply Quote 0
            • D Offline
              dwight.holman_5467
              last edited by

              I see what you mean. Though in this video the suffix is used for dev versions or release candidates. But I guess we could (ab)use this for branches.

              Will try and see how it goes.

              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