feat: Allow fresh rechunking of image

This commit is contained in:
Gerald Pinder 2024-12-14 16:25:06 -05:00
parent 1157ac7d74
commit 50ed183cde
7 changed files with 33 additions and 8 deletions

View file

@ -45,4 +45,7 @@ pub struct RechunkOpts<'scope> {
#[builder(default)]
pub compression: CompressionType,
pub tempdir: Option<&'scope Path>,
#[builder(default)]
pub clear_plan: bool,
}

View file

@ -442,7 +442,7 @@ pub trait RechunkDriver: RunDriver + BuildDriver + ContainerMountDriver {
"REPO" => "/var/ostree/repo",
"PREV_REF" => &*opts.image,
"OUT_NAME" => ostree_cache_id,
// "PREV_REF_FAIL" => "true",
"CLEAR_PLAN" => if opts.clear_plan { "true" } else { "" },
"VERSION" => format!("{}", opts.version),
"OUT_REF" => format!("oci:{ostree_cache_id}"),
"GIT_DIR" => "/var/git",