| 579 | check_composefs, |
| 580 | ); |
| 581 | fn 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. |
| 596 | fn check_baseimage_root_norecurse(dir: &Dir, _config: &LintExecutionConfig) -> LintResult { |