From 45b72dbbb415c02783495d09b08a28fa50abda0f Mon Sep 17 00:00:00 2001 From: Wildan M Date: Fri, 13 Feb 2026 17:01:15 +0700 Subject: [PATCH 1/2] Allow excluding dev inside binary packages --- src/bin/repo.rs | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/bin/repo.rs b/src/bin/repo.rs index 0dfc1ff3e..ec6ccd3c8 100644 --- a/src/bin/repo.rs +++ b/src/bin/repo.rs @@ -576,6 +576,26 @@ fn parse_args(args: Vec) -> anyhow::Result<(CliConfig, CliCommand, Vec source -> binary -> dev + // in this case, we need to move that "source" to "binary", because + // that would include dev from its binary child, which is unnecessary + let mut i = 0; + while i < source_recipe_names.len() { + let name = &source_recipe_names[i]; + match special_rules.get(name) { + Some(s) if s.as_str() == "source" => { + if binary_names.contains(name) { + let bin = source_recipe_names.remove(i); + binary_recipe_names.push(bin); + continue; + } + } + _ => {} + } + i += 1; + } + } CookRecipe::get_build_deps_recursive(&source_recipe_names, include_dev)? } else { CookRecipe::from_list(source_recipe_names.clone())? From e99d7a4ef0179d5dfcdcdcb5b1ba41834a9933f5 Mon Sep 17 00:00:00 2001 From: Wildan M Date: Fri, 13 Feb 2026 17:03:55 +0700 Subject: [PATCH 2/2] Prevent binary host recipes temporarily --- src/bin/repo.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/bin/repo.rs b/src/bin/repo.rs index ec6ccd3c8..6c97fe6a6 100644 --- a/src/bin/repo.rs +++ b/src/bin/repo.rs @@ -631,6 +631,11 @@ fn parse_args(args: Vec) -> anyhow::Result<(CliConfig, CliCommand, Vec "binary", (false, false) => default_rule, }; + if recipe.name.is_host() && rule == "binary" { + // host recipe binaries is currently not supported + continue; + } + recipe.apply_filesystem_config(rule)?; }