You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test(semver): track the behavior of --precise <prerelease>
As of the writing, this test is not the final semantic of pre-release
semver matching. Part of the behavior is buggy. This test just tracks
the current behavior of the unstable `--precise <prerelease>`.
The below transformation proposed in the RFC is hard to implement
outside the semver crate.
```
>=1.2.3, <2.0.0 -> >=1.2.3, <2.0.0-0
```
The upper bound semantic is also not resolved. So, at least two
outstanding issues are required to be fixed before the stabilization:
* Bug 1: `x.y.z-pre.0` shouldn't match `x.y.z`.
* Upper bound: Whether `>=x.y.z-0, <x.y.z` should match `x.y.z-0`.
See the RFC 3493 for the unresolved upper bound issue:
https://rust-lang.github.io/rfcs/3493-precise-pre-release-cargo-update.html#version-ranges-with-pre-release-upper-bounds
0 commit comments