From 05a43e078a89247dcc71c703c1bee2af97c1655d Mon Sep 17 00:00:00 2001 From: Daniel Hiltgen Date: Wed, 1 Oct 2025 17:39:29 -0700 Subject: [PATCH] fix panic on bootstrapDevices (#12475) Wrong index variable was used. --- discover/runner.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discover/runner.go b/discover/runner.go index 2c64264e..8071111f 100644 --- a/discover/runner.go +++ b/discover/runner.go @@ -456,7 +456,7 @@ func bootstrapDevices(ctx context.Context, ollamaLibDirs []string, extraEnvs []s extra := strings.SplitN(extraEnvs[j], "=", 2) if cmp[0] == extra[0] { cmd.Env[i] = extraEnvs[j] - extraDone[i] = true + extraDone[j] = true } } }