[PR #6363] [MERGED] fix: noprune on pull #17362

Closed
opened 2026-04-16 06:00:41 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/6363
Author: @mxyng
Created: 8/14/2024
Status: Merged
Merged: 8/15/2024
Merged by: @mxyng

Base: mainHead: mxyng/fix-noprune


📝 Commits (3)

📊 Changes

2 files changed (+31 additions, -68 deletions)

View changed files

📝 server/images.go (+26 -66)
📝 server/manifest.go (+5 -2)

📄 Description

OLLAMA_NOPRUNE is ignored on pull requests. switch to envconfig.NoPrune(); noprune was check but never set

ignore any manifest that's not actually a manifest. this can be files such as .DS_Store on macOS

resolves #6333


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/6363 **Author:** [@mxyng](https://github.com/mxyng) **Created:** 8/14/2024 **Status:** ✅ Merged **Merged:** 8/15/2024 **Merged by:** [@mxyng](https://github.com/mxyng) **Base:** `main` ← **Head:** `mxyng/fix-noprune` --- ### 📝 Commits (3) - [`b3f75fc`](https://github.com/ollama/ollama/commit/b3f75fc812fc1559090a7fd9739bd203817a5979) fix noprune - [`237dccb`](https://github.com/ollama/ollama/commit/237dccba1edb41bb65ed1ffc6eafdd40dd6085e4) skip invalid manifest files - [`3a75e74`](https://github.com/ollama/ollama/commit/3a75e74e34c976d596437c8aa14587ada562301e) only skip invalid json manifests ### 📊 Changes **2 files changed** (+31 additions, -68 deletions) <details> <summary>View changed files</summary> 📝 `server/images.go` (+26 -66) 📝 `server/manifest.go` (+5 -2) </details> ### 📄 Description `OLLAMA_NOPRUNE` is ignored on pull requests. switch to `envconfig.NoPrune()`; `noprune` was check but never set ignore any manifest that's not actually a manifest. this can be files such as `.DS_Store` on macOS resolves #6333 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-16 06:00:41 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#17362