mirror of
https://github.com/ollama/ollama.git
synced 2025-11-11 11:37:23 +01:00
server: replace blob prefix separator from ':' to '-' (#3146)
This fixes issues with blob file names that contain ':' characters to be rejected by file systems that do not support them.
This commit is contained in:
@@ -1088,6 +1088,14 @@ func Serve(ln net.Listener) error {
|
||||
|
||||
slog.SetDefault(slog.New(handler))
|
||||
|
||||
blobsDir, err := GetBlobsPath("")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if err := fixBlobs(blobsDir); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if noprune := os.Getenv("OLLAMA_NOPRUNE"); noprune == "" {
|
||||
// clean up unused layers and manifests
|
||||
if err := PruneLayers(); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user