Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
5 changes: 5 additions & 0 deletions src/install/bin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -903,6 +903,11 @@ 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
if !sys::exists(abs_target) {
// A project build script can still create the target. A bunx tree has
// no build step, and a stale entry there hides the missing file from bunx.
Comment thread
robobun marked this conversation as resolved.
if bun_core::env_var::feature_flag::BUN_INTERNAL_BUNX_INSTALL.get() == Some(true) {
Comment thread
robobun marked this conversation as resolved.
Self::unlink_bin_or_shim(abs_dest);
}
self.skipped_due_to_missing_bin = true;
return;
}
Expand Down
Loading
Loading