diff --git a/crates/composefs-ostree/src/commit.rs b/crates/composefs-ostree/src/commit.rs index 4091d964..c077c702 100644 --- a/crates/composefs-ostree/src/commit.rs +++ b/crates/composefs-ostree/src/commit.rs @@ -331,8 +331,8 @@ impl CommitWriter { LeafContent::Regular( RegularFile::External(obj_id, _) | RegularFile::ExternalNoVerity(obj_id, _), ) => Some(repo.read_object(obj_id)?), - LeafContent::Regular(RegularFile::Sparse(size)) => { - Some(vec![0u8; *size as usize]) + LeafContent::Regular(RegularFile::Sparse(_)) => { + bail!("Sparse files not supported in ostree commit") } _ => None, };