From 93c64ea1b1941bc6077ff1cf48c8eac902052f77 Mon Sep 17 00:00:00 2001 From: Daniel Hiltgen Date: Mon, 15 Sep 2025 15:45:35 -0700 Subject: [PATCH] doc: show how to clear the cgo cache (#12298) --- docs/development.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/development.md b/docs/development.md index 9726b5d91b..ff07b5fb6d 100644 --- a/docs/development.md +++ b/docs/development.md @@ -11,6 +11,10 @@ Then build and run Ollama from the root directory of the repository: go run . serve ``` +> [!NOTE] +> Ollama includes native code compiled with CGO. From time to time these data structures can change and CGO can get out of sync resulting in unexpected crashes. You can force a full build of the native code by running `go clean -cache` first. + + ## macOS (Apple Silicon) macOS Apple Silicon supports Metal which is built-in to the Ollama binary. No additional steps are required.