Skip to content

Commit

Permalink
Update to the latest semver
Browse files Browse the repository at this point in the history
The new release of semver treats `>= 0` the same as the `*` wildcard.
It makes sense that these are equivalent, but this did break 3 tests
and will technically reject syntax in `Cargo.toml` that was previously
accepted.
  • Loading branch information
jtgeibel committed Oct 31, 2020
1 parent 10e57eb commit 8ea5053
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
19 changes: 14 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ rand = "0.7"
regex = "1.3.9"
reqwest = { version = "0.10", features = ["blocking", "gzip", "json"] }
scheduled-thread-pool = "0.2.0"
semver = { version = "0.10", features = ["diesel", "serde"] }
semver = { version = "0.11", features = ["diesel", "serde"] }
sentry = "0.20.1"
serde = { version = "1.0.0", features = ["derive"] }
serde_json = "1.0.0"
Expand Down
2 changes: 1 addition & 1 deletion src/tests/builders/dependency.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ impl DependencyBuilder {
explicit_name_in_toml: None,
name: name.to_string(),
registry: None,
version_req: u::EncodableCrateVersionReq(semver::VersionReq::parse(">= 0").unwrap()),
version_req: u::EncodableCrateVersionReq(semver::VersionReq::parse("> 0").unwrap()),
}
}

Expand Down

0 comments on commit 8ea5053

Please sign in to comment.