Skip to content

Commit

Permalink
Use rustup run nightly instead of cargo +nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Oct 25, 2022
1 parent 2cf3306 commit 84848e3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ Note: In this file, do not use the hard wrap in the middle of a sentence for com

## [Unreleased]

- Work around a rustup bug ([rust-lang/rustup#3036](https://github.com/rust-lang/rustup/issues/3036)) on Windows.

## [0.1.6] - 2022-10-25

- Update `toml_edit` to 0.15.
Expand Down
3 changes: 2 additions & 1 deletion src/cargo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ impl Workspace {
if self.nightly {
self.cargo()
} else {
cmd!("cargo", "+nightly")
// Do not use `cargo +nightly` due to a rustup bug: https://github.com/rust-lang/rustup/issues/3036
cmd!("rustup", "run", "nightly", "cargo")
}
}
}
Expand Down

0 comments on commit 84848e3

Please sign in to comment.