From 3bc1f0fa5ccda3bf9149cb184f4b6d0d83b001a7 Mon Sep 17 00:00:00 2001 From: daimond113 Date: Fri, 14 Mar 2025 08:58:45 +0100 Subject: [PATCH] fix: make bin linkers only for bin packages Fixes binary linkers being made for non-binary direct dependencies. --- CHANGELOG.md | 4 ++++ src/cli/install.rs | 1 + 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 93883b1..9916da0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [Unreleased] +### Fixed +- Fix binary linkers being made for non-binary packages by @daimond113 + ## [0.6.1] - 2025-03-09 ### Fixed - Fix path dependencies using project's workspace dependencies by @daimond113 diff --git a/src/cli/install.rs b/src/cli/install.rs index c7588a6..d757525 100644 --- a/src/cli/install.rs +++ b/src/cli/install.rs @@ -60,6 +60,7 @@ impl DownloadAndLinkHooks for InstallHooks { .chain( graph .iter() + .filter(|(_, node)| node.target.bin_path().is_some()) .filter_map(|(_, node)| node.node.direct.as_ref()) .map(|(alias, _, _)| alias.as_str()), )