ostree-rs-ext icon indicating copy to clipboard operation
ostree-rs-ext copied to clipboard

--previous-build-manifest with different layer num causes panic

Open antheas opened this issue 1 year ago • 0 comments

If the user provides a --previous-build-manifest to rpm-ostree compose container-encapsulate which has a different number of max-layers than what was requested, the following line panics: https://github.com/ostreedev/ostree-rs-ext/blob/9a4743a657ffe0435018d9720c6df80a486ca0f1/lib/src/chunking.rs#L625

Expected behavior would be to attempt to do the merge gracefully as far as this library is concerned. Failing that, rpm-ostree should emit a warning and ignore the previous manifest.

Context: I did a build that went from 100 layers to 50.

antheas avatar May 10 '24 16:05 antheas