Skip to content

Commit

Permalink
Fix incorrect binary link target (#654)
Browse files Browse the repository at this point in the history
  • Loading branch information
alfiedotwtf committed Oct 4, 2024
1 parent 9bf3858 commit a3cccdf
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/toolchain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,12 @@ impl Toolchain {
} else {
let downloaded = store.install_component(&cfg)?;
for bin in downloaded {
hard_or_symlink_file(&bin, &self.bin_path.join(&cfg.name))?;
match bin.file_name() {
None => bail!("Failed to read file '{bin:?}' from download"),
Some(executable) => {
hard_or_symlink_file(&bin, &self.bin_path.join(executable))?
}
}
}
}
}
Expand Down

0 comments on commit a3cccdf

Please sign in to comment.