MCPcopy Create free account
hub / github.com/bootc-dev/bootc / check_composefs

Function check_composefs

crates/lib/src/lints.rs:581–593  ·  view source on GitHub ↗
(dir: &Dir, _config: &LintExecutionConfig)

Source from the content-addressed store, hash-verified

579 check_composefs,
580);
581fn check_composefs(dir: &Dir, _config: &LintExecutionConfig) -> LintResult {
582 if let Err(e) = check_prepareroot_composefs_norecurse(dir)? {
583 return Ok(Err(e));
584 }
585 // If we have our own documentation with the expected root contents
586 // embedded, then check that too! Mostly just because recursion is fun.
587 if let Some(dir) = dir.open_dir_optional(BASEIMAGE_REF)? {
588 if let Err(e) = check_prepareroot_composefs_norecurse(&dir)? {
589 return Ok(Err(e));
590 }
591 }
592 lint_ok()
593}
594
595/// Check for a few files and directories we expect in the base image.
596fn check_baseimage_root_norecurse(dir: &Dir, _config: &LintExecutionConfig) -> LintResult {

Callers 1

test_composefsFunction · 0.85

Calls 2

lint_okFunction · 0.85

Tested by 1

test_composefsFunction · 0.68