From f15fcfa9403f67b5f334defdf7834a6572c363a6 Mon Sep 17 00:00:00 2001 From: Wildan M Date: Mon, 4 May 2026 22:50:49 +0700 Subject: [PATCH] Implement "binary" fallback to "source" if package absent from CI --- src/bin/repo.rs | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/src/bin/repo.rs b/src/bin/repo.rs index d30360dc..e7885b63 100644 --- a/src/bin/repo.rs +++ b/src/bin/repo.rs @@ -3,11 +3,11 @@ use cookbook::config::{CookConfig, get_config, init_config}; use cookbook::cook::cook_build::{build, get_stage_dirs, remove_stage_dir}; use cookbook::cook::fetch::{FetchResult, fetch, fetch_offline}; use cookbook::cook::fs::{create_dir, create_target_dir, remove_all, run_command}; -use cookbook::cook::ident; use cookbook::cook::package::{package, package_handle_push}; use cookbook::cook::pty::{PtyOut, UnixSlavePty, flush_pty, setup_pty, write_to_pty}; use cookbook::cook::script::KILL_ALL_PID; use cookbook::cook::tree::{self, WalkTreeEntry}; +use cookbook::cook::{fetch_repo, ident}; use cookbook::recipe::{CookRecipe, recipes_flatten_package_names, recipes_mark_as_deps}; use cookbook::{Error, Result, staged_pkg}; use pkg::{PackageName, PackageState}; @@ -679,6 +679,23 @@ fn parse_args(args: Vec) -> Result<(CliConfig, CliCommand, Vec