mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-19 03:53:22 -04:00
dev-ml/ollama: fix --version
Closes https://github.com/gentoo/guru/pull/205 Signed-off-by: Vitaly Zdanevich <zdanevich.vitaly@ya.ru>
This commit is contained in:
@@ -42,6 +42,12 @@ src_unpack() {
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
VERSION=$(
|
||||
git describe --tags --first-parent --abbrev=7 --long --dirty --always \
|
||||
| sed -e "s/^v//g"
|
||||
)
|
||||
export GOFLAGS="'-ldflags=-w -s \"-X=github.com/ollama/ollama/version.Version=$VERSION\"'"
|
||||
|
||||
ego generate ./...
|
||||
ego build .
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user