From 7d79ecdad184deead36cf6dd2be0d7d58f254ffa Mon Sep 17 00:00:00 2001 From: Wildan M Date: Thu, 23 Oct 2025 20:07:50 +0700 Subject: [PATCH] Remove build_only --- src/bin/cook.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/bin/cook.rs b/src/bin/cook.rs index a6aa5462..e87fecdc 100644 --- a/src/bin/cook.rs +++ b/src/bin/cook.rs @@ -37,13 +37,12 @@ fn cook( recipe: &Recipe, is_deps: bool, fetch_only: bool, - build_only: bool, is_offline: bool, ) -> Result<(), String> { if recipe.build.kind == BuildKind::None { return cook_meta(recipe_dir, name, recipe, fetch_only); } - let source_dir = match is_offline || build_only { + let source_dir = match is_offline { true => fetch_offline(recipe_dir, &recipe.source), false => fetch(recipe_dir, &recipe.source), } @@ -151,7 +150,6 @@ fn main() { &recipe.recipe, recipe.is_deps, fetch_only, - false, is_offline, ) };