-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prereleases cannot be selected #2337
Comments
It was fine when I first published that version, I don’t know what changed. @nox, what’s |
|
I think I am hit by brson/multirust#121 too, so maybe it's fixed in the latest nightly but I can't confirm right now. |
|
cc @steveklabnik, perhaps a semver issue? |
// https://docs.npmjs.com/misc/semver#prerelease-tags
fn pre_tag_is_compatible(&self, ver: &Version) -> bool {
// If a version has a prerelease tag (for example, 1.2.3-alpha.3) then it will only be
// allowed to satisfy comparator sets if at least one comparator with the same [major,
// minor, patch] tuple also has a prerelease tag.
!ver.is_prerelease() || (self.major == ver.major &&
self.minor == Some(ver.minor) &&
self.patch == Some(ver.patch) &&
!self.pre.is_empty())
} That said, the |
When added to Cargo's test suite, this failed for me: test!(use_semver {
let p = project("foo")
.file("Cargo.toml", r#"
[project]
name = "bar"
version = "0.5.0"
authors = []
[dependencies]
foo = "1.2.3-alpha.0"
"#)
.file("src/main.rs", "fn main() {}");
p.build();
Package::new("foo", "1.2.3-alpha.0").publish();
assert_that(p.cargo("build"), execs().with_status(0));
}); |
Yes, this is a bug in Semver: dtolnay/semver#73 I'll see what I can do |
I can't currently use expat-sys 2.1.1-really.0 from anywhere.
The text was updated successfully, but these errors were encountered: