Skip to content

Commit

Permalink
Merge pull request #2558 from mejrs/cargo
Browse files Browse the repository at this point in the history
Call the right cargo binary
  • Loading branch information
davidhewitt authored Aug 25, 2022
2 parents 611ecc1 + abb2787 commit f927cdb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion xtask/src/doc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ pub fn run(opts: DocOpts) -> anyhow::Result<()> {

std::env::set_var("RUSTDOCFLAGS", flags.join(" "));
cli::run(
Command::new("cargo")
Command::new(concat!(env!("CARGO_HOME"), "/bin/cargo"))
.args(if opts.stable { None } else { Some("+nightly") })
.arg("doc")
.arg("--lib")
Expand Down
4 changes: 2 additions & 2 deletions xtask/src/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ pub fn run() -> anyhow::Result<()> {

// Test MSRV
cli::run(
Command::new("cargo")
Command::new(concat!(env!("CARGO_HOME"), "/bin/cargo"))
.arg(format!("+{}", MSRV))
.arg("test")
.arg("--no-default-features")
Expand All @@ -54,7 +54,7 @@ pub fn run() -> anyhow::Result<()> {
)?;

cli::run(
Command::new("cargo")
Command::new(concat!(env!("CARGO_HOME"), "/bin/cargo"))
.arg("+nightly")
.arg("test")
.arg("--no-default-features")
Expand Down

0 comments on commit f927cdb

Please sign in to comment.