From db4e7b9dbd8672cc1589c240191b5966036c522b Mon Sep 17 00:00:00 2001 From: vasilito Date: Sun, 12 Jul 2026 19:04:39 +0300 Subject: [PATCH] fix: cookbook guess_version falls back to '0.1.0' instead of None MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When recipe has no [package].version, no parseable tar URL version, no git rev/branch version, no Cargo.toml version, and no directory-name version — fall back to '0.1.0' instead of failing with 'cannot guess version'. This eliminates the class of failures for sysroot-copy and simple git-source recipes like netdb, libgcc, libstdcxx, etc. --- src/recipe.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/recipe.rs b/src/recipe.rs index 4c85860e5a..44077f06db 100644 --- a/src/recipe.rs +++ b/src/recipe.rs @@ -523,7 +523,7 @@ impl CookRecipe { if let Some(ver) = VersionExtractor::extract_cargo_ver(&cargo_path) { return Some(ver); } - None + Some("0.1.0".into()) } }