-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make unpack process handle both old and new ModelKits
We need to handle existing ModelKits in addition to the new tar format -- for new ModelKits, we can unpack the tars directly (and simply), but for older ones, we need to pre-create the layer's directory and concatenate paths from the tarball. To avoid overcomplicating things (since we're still relatively early), we detect new ModelKits via the digest/diffId fields in the config; this is a lot simpler to support than using new versions on our media types.
- Loading branch information
Showing
1 changed file
with
71 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters