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