mirror of
https://github.com/ollama/ollama.git
synced 2025-05-11 18:36:41 +02:00
llm: do not evaluate symlink for exe path lookup (#9088)
In some cases, the directories in the executable path read by filepath.EvalSymlinks are not accessible, resulting in permission errors which results in an error when running models. It also doesn't work well on long paths on windows, also resulting in errors. This change removes filepath.EvalSymlinks when accessing os.Executable() altogether
This commit is contained in:
parent
6600bd7d91
commit
f05774b04c
2 changed files with 0 additions and 10 deletions
|
@ -19,11 +19,6 @@ var LibOllamaPath string = func() string {
|
|||
return ""
|
||||
}
|
||||
|
||||
exe, err = filepath.EvalSymlinks(exe)
|
||||
if err != nil {
|
||||
return ""
|
||||
}
|
||||
|
||||
var libPath string
|
||||
switch runtime.GOOS {
|
||||
case "windows":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue