Function
determine_output_dir
(tag: &str, image_path: &Path)
Source from the content-addressed store, hash-verified
| 354 | // ─── Helpers ──────────────────────────────────────────────────────────────── |
| 355 | |
| 356 | fn determine_output_dir(tag: &str, image_path: &Path) -> std::path::PathBuf { |
| 357 | let dir_name = if tag.starts_with("dstack-") { |
| 358 | tag.to_string() |
| 359 | } else { |
| 360 | format!("dstack-{tag}") |
| 361 | }; |
| 362 | image_path.join(dir_name) |
| 363 | } |
| 364 | |
| 365 | /// Parse "registry.example.com/repo/name" into ("registry.example.com", "repo/name"). |
| 366 | /// |
Tested by
no test coverage detected