(text: &str)
| 365 | } |
| 366 | |
| 367 | fn write_catalog(text: &str) -> Result<()> { |
| 368 | let path = Path::new(CATALOG_PATH); |
| 369 | if let Some(parent) = path.parent() { |
| 370 | fs::create_dir_all(parent).with_context(|| format!("create {}", parent.display()))?; |
| 371 | } |
| 372 | fs::write(path, format!("{text}\n")).with_context(|| format!("write {}", path.display())) |
| 373 | } |
| 374 | |
| 375 | fn write_build_plan_files(catalog: &ExtensionCatalog) -> Result<()> { |
| 376 | let texts = build_plan_texts(catalog)?; |