[PR #7961] [CLOSED] macapp: add error handling for symlink operations #43819

Closed
opened 2026-04-24 23:24:08 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/7961
Author: @BruceMacD
Created: 12/6/2024
Status: Closed

Base: mainHead: brucemacd/install-path-clean


📝 Commits (1)

  • 8f8aac9 macapp: add error handling for symlink operations

📊 Changes

1 file changed (+23 additions, -9 deletions)

View changed files

📝 macapp/src/install.ts (+23 -9)

📄 Description

Refactor the installer to do a better job handling errors when creating symlinks. It checks if paths are valid before trying to use them, safely creates directories if they don't exist, and clearly tells you what went wrong if something fails. It also uses TypeScript to catch mistakes early and makes sure paths work correctly in all cases.


🔄 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/7961 **Author:** [@BruceMacD](https://github.com/BruceMacD) **Created:** 12/6/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `brucemacd/install-path-clean` --- ### 📝 Commits (1) - [`8f8aac9`](https://github.com/ollama/ollama/commit/8f8aac9cd30e889973472d779aa493dcc7453972) macapp: add error handling for symlink operations ### 📊 Changes **1 file changed** (+23 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `macapp/src/install.ts` (+23 -9) </details> ### 📄 Description Refactor the installer to do a better job handling errors when creating symlinks. It checks if paths are valid before trying to use them, safely creates directories if they don't exist, and clearly tells you what went wrong if something fails. It also uses TypeScript to catch mistakes early and makes sure paths work correctly in all cases. --- <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-24 23:24:08 -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#43819