[PR #12514] [MERGED] discovery: prevent dup OLLAMA_LIBRARY_PATH #13852

Closed
opened 2026-04-13 00:38:36 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/12514
Author: @dhiltgen
Created: 10/6/2025
Status: Merged
Merged: 10/6/2025
Merged by: @dhiltgen

Base: mainHead: double_lib_env


📝 Commits (1)

  • fa8ff67 discovery: prevent dup OLLAMA_LIBRARY_PATH

📊 Changes

2 files changed (+14 additions, -3 deletions)

View changed files

📝 discover/runner.go (+7 -1)
📝 llm/server.go (+7 -2)

📄 Description

This variable isn't currently documented or intended as something the user can override, but if the user happens to set OLLAMA_LIBRARY_PATH we were doubling this in the subprocess environment which will cause problems with the new bootstrap discovery logic.


🔄 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/12514 **Author:** [@dhiltgen](https://github.com/dhiltgen) **Created:** 10/6/2025 **Status:** ✅ Merged **Merged:** 10/6/2025 **Merged by:** [@dhiltgen](https://github.com/dhiltgen) **Base:** `main` ← **Head:** `double_lib_env` --- ### 📝 Commits (1) - [`fa8ff67`](https://github.com/ollama/ollama/commit/fa8ff672edb8ac8270c78d395f5ae280518e35d6) discovery: prevent dup OLLAMA_LIBRARY_PATH ### 📊 Changes **2 files changed** (+14 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `discover/runner.go` (+7 -1) 📝 `llm/server.go` (+7 -2) </details> ### 📄 Description This variable isn't currently documented or intended as something the user can override, but if the user happens to set OLLAMA_LIBRARY_PATH we were doubling this in the subprocess environment which will cause problems with the new bootstrap discovery logic. --- <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-13 00:38:36 -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#13852