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

Function in_bootc_source_tree

crates/xtask/src/xtask.rs:304–308  ·  view source on GitHub ↗

Check if we're in a bootc source tree by looking for [`TOPLEVEL_MARKER`].

()

Source from the content-addressed store, hash-verified

302
303/// Check if we're in a bootc source tree by looking for [`TOPLEVEL_MARKER`].
304fn in_bootc_source_tree() -> Result<bool> {
305 Utf8Path::new(TOPLEVEL_MARKER)
306 .try_exists()
307 .context("Checking for toplevel")
308}
309
310fn try_main() -> Result<()> {
311 // Ensure our working directory is the bootc source toplevel.

Callers 1

try_mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected