question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

RFC: Add SemVer mode for paket 6

See original GitHub issue

Since we noticed multiple issues with ASP.NET and how packages are release I propose a new group and package flag called semver_level with the following options:

  • major - Resolver will not skip to a higher major version
  • minor - Resolver will not skip to a higher minor version
  • none - Resolver works as in paket 5.

So if the you are using ASP.NET 2.2 using semver_level: major would shield you from resolving asp.net 3.x packages. If your are using ASP.NET 3.0 and don’t want to draw ASP.NET 3.1 packages then you could use semver_level: minor.

This flag only applies to transitive dependencies. If you have direct dependency A which dependends on B >= 2.2 then semver_level: major would rewrite it to B >= 2.2 && B < 3.0.

This flag would work together with min and max strategy. Frankly min/max defines the order in which versions are probed while semver_level restricts the version ranges that are found in the nuspecs.

The default would be major. This will be a breaking change, but it would not break restore of exisitng lock files.

Alternative approach

We extend the “strategy” modifier to have 4 values:

  • “min” - uses the minimum matching version. That’s how NuGet operates. Available in paket 5.
  • “latest-patch” - takes the latest patch that is available from the minimum version. Does not increase major or minor versions. Probably works best with Microsoft packages. Especially asp.net core.
  • “latest-minor” - takes the latest minor that is available from the minimum version. Does not increase major versions.
  • “max” - uses the maximum matching version. Default in paket 5.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:5
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
forkicommented, Dec 10, 2019

@inosik I added this as alternative approach

1reaction
matthidcommented, Dec 4, 2019

Would be interesting to implement and see which tests in the test-suite start failing 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Semantic Versioning 2.0.0 | Semantic Versioning
Given a version number MAJOR.MINOR.PATCH, increment the: MAJOR version when you make incompatible API changes; MINOR version when you add functionality in a ......
Read more >
[RFC PATCH 00/15] Rework npm support
Add support for existing npm-shrinkwrap.json to recipetool * Add ... mode 2021-11-24 14:47 [RFC PATCH 00/15] Rework npm support Stefan ...
Read more >
Network Working Group R. Wilton, Ed. Internet-Draft Cisco ...
This document specifies a new YANG module update procedure that can document when non-backwards-compatible changes have occurred during.
Read more >
Software versioning
Semantic versioning (aka SemVer) is a widely-adopted version scheme that encodes a version by a three-part version number (Major.Minor.Patch), an optional pre- ...
Read more >
Package List
This is a list of things you can install using Spack. It is automatically generated based on the packages in this Spack version....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found