Avoid pushing dev dependencies

This commit is contained in:
Wildan M 2025-11-30 22:20:11 +07:00
parent 04fa310351
commit ce0e42833d
No known key found for this signature in database
GPG Key ID: 01AC53185C679C79

View File

@ -480,9 +480,9 @@ fn parse_args(args: Vec<String>) -> anyhow::Result<(CliConfig, CliCommand, Vec<C
}
CookRecipe::get_build_deps_recursive(
&recipe_names,
true,
!command.is_pushing(),
// In CliCommand::Cook, is_deps==true will make it skip checking source
command == CliCommand::Tree || !config.with_package_deps,
command.is_pushing() || !config.with_package_deps,
)?
} else {
recipe_names