fix(ollama)

add version. closes #5677
This commit is contained in:
Jacob Heider 2024-03-22 09:56:08 -04:00 committed by Jacob Heider
parent 8903641dbb
commit 524fc44fc1

View file

@ -21,6 +21,8 @@ build:
- go generate ./...
- go build -ldflags="$GO_LDFLAGS" -o '{{prefix}}/bin/ollama' .
env:
GO_LDFLAGS:
- -X github.com/jmorganca/ollama/version.Version={{version}}
linux:
GO_LDFLAGS:
# else segfaults
@ -35,6 +37,7 @@ test:
linux:
gitlab.com/procps-ng/procps: '*'
script:
- ollama --version | grep 'client version is {{version}}'
# 0.0.19 complains about a missing blobs directory
- run: mkdir -p ~/.ollama/models/blobs
if: =0.0.19