mirror of
https://github.com/dogkeeper886/ollama37.git
synced 2025-12-18 03:37:09 +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
|
# Build the C/C++/CUDA libraries
|
||||||
CC=/usr/local/bin/gcc CXX=/usr/local/bin/g++ cmake --build build -j$(nproc)
|
CC=/usr/local/bin/gcc CXX=/usr/local/bin/g++ cmake --build build -j$(nproc)
|
||||||
|
|
||||||
# Build the Go binary
|
# Build the Go binary (with version)
|
||||||
go build -o ollama .
|
OLLAMA_VERSION="2.0.1"
|
||||||
|
go build -ldflags "-X github.com/ollama/ollama/version.Version=${OLLAMA_VERSION}" -o ollama .
|
||||||
```
|
```
|
||||||
|
|
||||||
## Running Ollama
|
## Running Ollama
|
||||||
|
|||||||
Reference in New Issue
Block a user