implements PR-022

This commit is contained in:
2026-03-24 13:42:46 +00:00
parent a14a0b8b37
commit 165be76128
16 changed files with 508 additions and 22 deletions
@@ -65,4 +65,15 @@ public final class PackerRuntimePatchService {
}
return new PackerRuntimeSnapshot(generation, updatedRegistry, updatedAssets);
}
public PackerRuntimeSnapshot afterDeleteAsset(
PackerRuntimeSnapshot snapshot,
long generation,
PackerRegistryState updatedRegistry,
Path assetRoot) {
final List<PackerRuntimeAsset> updatedAssets = snapshot.assets().stream()
.filter(asset -> !asset.assetRoot().equals(assetRoot.toAbsolutePath().normalize()))
.toList();
return new PackerRuntimeSnapshot(generation, updatedRegistry, updatedAssets);
}
}