From f25016b7d5865725ea4e5c7fd45eae4ca0efdb2e Mon Sep 17 00:00:00 2001 From: Shang Chieh Tseng Date: Wed, 17 Dec 2025 00:17:32 +0800 Subject: [PATCH] Set version to 2.0.1 in build instructions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Update CLAUDE.md build command to include -ldflags that sets the version properly instead of defaulting to 0.0.0. Fixes #8 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- CLAUDE.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 8feb2394..da3664b6 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -81,8 +81,9 @@ CC=/usr/local/bin/gcc CXX=/usr/local/bin/g++ cmake --preset "CUDA 11 K80" # Build the C/C++/CUDA libraries CC=/usr/local/bin/gcc CXX=/usr/local/bin/g++ cmake --build build -j$(nproc) -# Build the Go binary -go build -o ollama . +# Build the Go binary (with version) +OLLAMA_VERSION="2.0.1" +go build -ldflags "-X github.com/ollama/ollama/version.Version=${OLLAMA_VERSION}" -o ollama . ``` ## Running Ollama