MCPcopy Create free account
hub / github.com/Nariod/RustPacker / image_exists

Function image_exists

src/compiler.rs:29–37  ·  view source on GitHub ↗
(runtime: &str)

Source from the content-addressed store, hash-verified

27}
28
29fn image_exists(runtime: &str) -> bool {
30 Command::new(runtime)
31 .args(["image", "inspect", BUILDER_IMAGE])
32 .stdout(Stdio::null())
33 .stderr(Stdio::null())
34 .status()
35 .map(|s| s.success())
36 .unwrap_or(false)
37}
38
39fn build_builder_image(runtime: &str) -> Result<(), Box<dyn std::error::Error>> {
40 println!("[+] Building {} image (first run only)...", BUILDER_IMAGE);

Callers 1

ensure_builder_imageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected