mirror of
https://github.com/esp-rs/espup.git
synced 2025-09-30 06:10:37 +00:00
fix: 🐛 Use the proper toolchain version
This commit is contained in:
parent
c9e73c4cf4
commit
80538b1c59
@ -189,12 +189,11 @@ impl Installable for XtensaRust {
|
|||||||
.stdout(Stdio::piped())
|
.stdout(Stdio::piped())
|
||||||
.output()?;
|
.output()?;
|
||||||
let output = String::from_utf8_lossy(&rustc_version.stdout);
|
let output = String::from_utf8_lossy(&rustc_version.stdout);
|
||||||
let toolchain_semver = self.version.rsplit_once('.').unwrap().0;
|
if rustc_version.status.success() && output.contains(&self.version) {
|
||||||
if rustc_version.status.success() && output.contains(toolchain_semver) {
|
|
||||||
warn!(
|
warn!(
|
||||||
"{} Previous installation of Xtensa Rust {} exists in: '{}'. Reusing this installation.",
|
"{} Previous installation of Xtensa Rust {} exists in: '{}'. Reusing this installation.",
|
||||||
emoji::WARN,
|
emoji::WARN,
|
||||||
toolchain_semver,
|
&self.version,
|
||||||
&self.toolchain_destination.display()
|
&self.toolchain_destination.display()
|
||||||
);
|
);
|
||||||
return Ok(vec![]);
|
return Ok(vec![]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user