Skip to content

Commit 9ca277f

Browse files
committed
bump minimal xargo version so that it honors the lockfile
1 parent d518c38 commit 9ca277f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/bin/cargo-miri.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ use std::path::{PathBuf, Path};
66
use std::process::Command;
77
use std::ops::Not;
88

9+
const XARGO_MIN_VERSION: (u32, u32, u32) = (0, 3, 17);
10+
911
const CARGO_MIRI_HELP: &str = r#"Interprets bin crates and tests in Miri
1012
1113
Usage:
@@ -258,7 +260,7 @@ fn setup(ask_user: bool) {
258260
}
259261

260262
// First, we need xargo.
261-
if xargo_version().map_or(true, |v| v < (0, 3, 16)) {
263+
if xargo_version().map_or(true, |v| v < XARGO_MIN_VERSION) {
262264
if std::env::var("XARGO").is_ok() {
263265
// The user manually gave us a xargo binary; don't do anything automatically.
264266
show_error(format!("Your xargo is too old; please upgrade to the latest version"))

0 commit comments

Comments
 (0)