mirror of
https://github.com/ollama/ollama.git
synced 2025-12-08 02:22:39 +01:00
prune partial downloads (#4272)
This commit is contained in:
@@ -154,9 +154,6 @@ func GetBlobsPath(digest string) (string, error) {
|
||||
// only accept actual sha256 digests
|
||||
pattern := "^sha256[:-][0-9a-fA-F]{64}$"
|
||||
re := regexp.MustCompile(pattern)
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
||||
if digest != "" && !re.MatchString(digest) {
|
||||
return "", ErrInvalidDigestFormat
|
||||
|
||||
Reference in New Issue
Block a user