mirror of
https://github.com/ollama/ollama.git
synced 2025-10-09 21:43:12 +02:00
ignore non blobs
This commit is contained in:
@@ -782,7 +782,9 @@ func PruneLayers() error {
|
||||
if runtime.GOOS == "windows" {
|
||||
name = strings.ReplaceAll(name, "-", ":")
|
||||
}
|
||||
deleteMap[name] = struct{}{}
|
||||
if strings.HasPrefix(name, "sha256:") {
|
||||
deleteMap[name] = struct{}{}
|
||||
}
|
||||
}
|
||||
|
||||
log.Printf("total blobs: %d", len(deleteMap))
|
||||
|
Reference in New Issue
Block a user