Wave 445/509: Engine: diagnostics.validation reads and sets the mode (and 3 more)
4 commits, squashed; the originals stay reachable from tag archive/merge-main-develop. - 5d80fc571 jyviko: Engine: diagnostics.validation reads and sets the mode - 1a93a3977 jyviko: CLI: run and kernel-cases take the validation mode - 50501fe14 jyviko: Preferences: Body check, once per feature by default - 6a133042c jyviko: Preferences: the body check is the kernel's, not named after SMLib Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DtL5M41G8Nua7HvuFPZkmJ
This commit is contained in:
@@ -376,7 +376,7 @@ fn part_design(s: &Session, sc: &Scope, stem: &str, cmd: &str) -> Result<(Sessio
|
||||
if !source.configs.is_empty() {
|
||||
notices.push(format!("the configurations stay in this design; {stem} has none"));
|
||||
}
|
||||
let part = Session::new(part);
|
||||
let part = Session::opened_validating(part, None, s.validation());
|
||||
let failing: Vec<String> = part.model.results.iter().filter_map(|r| r.error.as_ref().map(|e| format!("{} ({e})", r.name))).take(5).collect();
|
||||
if !failing.is_empty() {
|
||||
return Err(bad(cmd, format!("{name} does not build on its own: {}", failing.join("; "))));
|
||||
|
||||
Reference in New Issue
Block a user