mirror of
https://github.com/dogkeeper886/ollama37.git
synced 2025-12-17 11:17:11 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user