• Jesse Gross's avatar
    manifest: Don't prune layers if we can't open a manifest file · 685a5353
    Jesse Gross authored
    If there is an error when opening a manifest file (corrupted, permission denied, etc.)
    then the referenced layers will not be included in the list of active
    layers. This causes them to be deleted when pruning happens at startup
    or a model is pulled.
    
    In such a situation, we should prefer to preserve data in the hopes that
    it can be recovered rather than being agressive about deletion.
    685a5353
images.go 28.1 KB