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