Warn and create source dir if no source provided

This commit is contained in:
Jeremy Soller 2023-12-13 14:52:36 -07:00
parent e8178a7123
commit 561204cb56
No known key found for this signature in database
GPG Key ID: DCFCA852D3906975

View File

@ -364,10 +364,11 @@ fi"#);
// Local Sources
None => {
if ! source_dir.is_dir() {
return Err(format!(
"Recipe without source section expected source dir at '{}'",
eprintln!(
"WARNING: Recipe without source section expected source dir at '{}'",
source_dir.display(),
))
);
create_dir(&source_dir)?;
}
},
}