Skip to content

Commit bd31c3f

Browse files
committed
Stop skipping SpecFile items that are not live layers
The SpecFile::EnvLayersFile flavor is likely not handled correctly. Signed-off-by: J Robert Ray <[email protected]>
1 parent 9553f01 commit bd31c3f

File tree

1 file changed

+2
-1
lines changed
  • crates/spfs/src/tracking

1 file changed

+2
-1
lines changed

crates/spfs/src/tracking/env.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,7 @@ impl EnvSpecItem {
273273
}
274274

275275
/// Returns true if this item is a live layer file
276+
#[inline]
276277
pub fn is_livelayer(&self) -> bool {
277278
matches!(self, Self::SpecFile(SpecFile::LiveLayer(_)))
278279
}
@@ -416,7 +417,7 @@ impl EnvSpec {
416417
let mut new_items: Vec<EnvSpecItem> = Vec::with_capacity(self.items.len());
417418
for item in &self.items {
418419
// Filter out the LiveLayers entirely because they do not have digests
419-
if let EnvSpecItem::SpecFile(_) = item {
420+
if item.is_livelayer() {
420421
continue;
421422
}
422423
new_items.push(self.resolve_tag_item_to_digest_item(item, repos).await?);

0 commit comments

Comments
 (0)