You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If one of the calls to add_input_to_package fails, the ArchiveBuilder and its enclosed tar::Builder will be dropped. Dropping the tar::Builder finalizes the archive (by calling Builder::finish) in whatever state it was in when the error occurred.
It would be nice either to delete partial package archives on failure or (as @faithanalog suggested in propolis#812) construct them in a temporary location and move them to the final location only when the archive is fully constructed.
The text was updated successfully, but these errors were encountered:
See oxidecomputer/propolis#812 for a specific case of this.
ILTM like the output archive gets created on this path, at least for zone tarballs:
omicron-package/src/package.rs
Lines 664 to 674 in 13afd8c
If one of the calls to
add_input_to_package
fails, theArchiveBuilder
and its enclosedtar::Builder
will be dropped. Dropping thetar::Builder
finalizes the archive (by callingBuilder::finish
) in whatever state it was in when the error occurred.It would be nice either to delete partial package archives on failure or (as @faithanalog suggested in propolis#812) construct them in a temporary location and move them to the final location only when the archive is fully constructed.
The text was updated successfully, but these errors were encountered: