mirror of
https://github.com/ollama/ollama.git
synced 2025-03-18 22:01:47 +01:00
provides a better approach to #9088 that will attempt to evaluate symlinks (important for macOS where 'ollama' is often a symlink), but use the result of os.Executable() as a fallback in scenarios where filepath.EvalSymlinks fails due to permission erorrs or other issues