Skip to content
Closed
Show file tree
Hide file tree
Changes from 12 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/install/bin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -901,8 +901,10 @@ impl<'a> Linker<'a> {
}

// Skip if the target does not exist. This is important because placing a dangling
// shim in path might break a postinstall
// shim in path might break a postinstall. An entry from an earlier install
// that points at the missing file runs nothing either, so remove it.
Comment thread
robobun marked this conversation as resolved.
Resolved
if !sys::exists(abs_target) {
Comment thread
robobun marked this conversation as resolved.
Resolved
Self::unlink_bin_or_shim(abs_dest);
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved
self.skipped_due_to_missing_bin = true;
return;
}
Expand Down
Loading
Loading