Set version to 2.0.1 in build instructions

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 <noreply@anthropic.com>
This commit is contained in:
Shang Chieh Tseng
2025-12-17 00:17:32 +08:00
parent ce2882b757
commit f25016b7d5

View File

@@ -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