mirror of
https://github.com/esp-rs/espup.git
synced 2025-09-29 22:01:07 +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())
|
||||
.output()?;
|
||||
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(toolchain_semver) {
|
||||
if rustc_version.status.success() && output.contains(&self.version) {
|
||||
warn!(
|
||||
"{} Previous installation of Xtensa Rust {} exists in: '{}'. Reusing this installation.",
|
||||
emoji::WARN,
|
||||
toolchain_semver,
|
||||
&self.version,
|
||||
&self.toolchain_destination.display()
|
||||
);
|
||||
return Ok(vec![]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user