func (d *ociArchiveImageDestination) Commit(ctx context.Context) error {
	if err := d.unpackedDest.Commit(ctx); err != nil {
		return errors.Wrapf(err, "error storing image %q", d.ref.image)
	}

	// path of directory to tar up
	src := d.tempDirRef.tempDirectory
	// path to save tarred up file
	dst := d.ref.resolvedFile
	return tarDirectory(src, dst)
}
func (d *ociArchiveImageDestination) Commit(ctx context.Context) error {
	if err := d.unpackedDest.Commit(ctx); err != nil {
		return errors.Wrapf(err, "error storing image %q", d.ref.image)
	}

	
	src := d.tempDirRef.tempDirectory
	
	dst := d.ref.resolvedFile
	return tarDirectory(src, dst)
}
func ( d * ociArchiveImageDestination ) Commit ( ctx context . Context ) error { if err := d . unpackedDest . Commit ( ctx ) ; err != nil { return errors . Wrapf ( err , " " , d . ref . image ) } // path of directory to tar up src := d . tempDirRef . tempDirectory // path to save tarred up file dst := d . ref . resolvedFile return tarDirectory ( src , dst ) }
// Commit marks the process of storing the image as successful and asks for the image to be persisted
// after the directory is made, it is tarred up into a file and the directory is deleted
Commit marks the process of storing the image as successful and asks for the image to be persisted after the directory is made it is tarred up into a file and the directory is deleted