Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upRegression in matching prerelease versions #2381
Comments
This comment has been minimized.
This comment has been minimized.
|
This is a bugfix change in semver: steveklabnik/semver#54 |
This comment has been minimized.
This comment has been minimized.
|
(I would be willing to cut a certain version if you wanted to keep this bugfix for now to roll out the fix more slowly) |
This comment has been minimized.
This comment has been minimized.
abonander
commented
Feb 12, 2016
|
I just discovered this myself as well. The kicker is that you can still upload crates with prerelease version strings. Is that not being validated the same way? |
This comment has been minimized.
This comment has been minimized.
|
The issue was that comparisons between prerelease versions were wrong. You can still select them; you just have to explicitly. On Feb 11, 2016, 19:08 -0500, Austin Bonandernotifications@github.com, wrote:
|
This comment has been minimized.
This comment has been minimized.
|
Ok, it looks like this behavior was added in steveklabnik/semver@0faefa8 (as part of steveklabnik/semver#54 which @steveklabnik mentioned) which was first released in semver 0.2.1. Cargo updated to semver 0.2.1 as part of dd34296 which has not been released yet (but will be part of Cargo 0.9.0). This does indeed just look like a routine bugfix! I'm going to tag this with regardless, though, cc @meh ( Note that #2222 I believe is still a relevant issue here and if it's actually fixed by upstream semver changes I'd like to check in some tests, otherwise I think it's still a valid issue. |
alexcrichton
added
the
A-documenting-cargo-itself
label
Feb 12, 2016
brson
added
the
relnotes
label
Feb 12, 2016
This comment has been minimized.
This comment has been minimized.
vbarrielle
commented
Feb 13, 2016
|
Specifying the prerelease version does work in nightly, but it doesn't work on stable. Indeed, in I'm not really worried about this though because I'm fine with |
This comment has been minimized.
This comment has been minimized.
|
Interesting, thanks for the info @vbarrielle! If it becomes a problem we could roll back the semver changes and have a period where continue the old behavior, but if it's not that serious we can probably let this continue through. |
This comment has been minimized.
This comment has been minimized.
|
I'm happy that semver did this bug fix actually, I wouldn't want to see a rollback. |
This comment has been minimized.
This comment has been minimized.
|
I was happy with the ordering changes. But why doesn't |
This comment has been minimized.
This comment has been minimized.
|
cc @steveklabnik, maybe a bug in semver? or maybe intentional? |
alexcrichton
referenced this issue
Apr 11, 2016
Closed
"no matching package named `ffmpeg-sys` found" but required version is part of the index #2558
This comment has been minimized.
This comment has been minimized.
Because pre-release versions aren't "real" versions. It's sort of implied in the SemVer spec, though it's not particularly clear, but other implementations of Semver, like npm's, only match prerelease versions if you specify prerelease versions:
|
This comment has been minimized.
This comment has been minimized.
|
I have some local tooling that just wants to depend on the latest versions for doc generation and so on. It would be nice to have some kind of version spec that worked for that. |
jshrake
added a commit
to jshrake/glsl-include
that referenced
this issue
Apr 14, 2018
This comment has been minimized.
This comment has been minimized.
|
What actions are required to resolve this ticket? I'm confused. |
This comment has been minimized.
This comment has been minimized.
|
Ah this is so old the "regression" is now codified, so closing. |
alexcrichton commentedFeb 11, 2016
All of the following dependency lines work on stable, but none work on nightly, would be good to know why!
May be related to #2348,
cc @steveklabnik
cc @brson