commit: f0eb17f75400cdea0262eadf2b3ba90425b9d29f Author: Vitaly Zdanevich <zdanevich.vitaly <AT> ya <DOT> ru> AuthorDate: Mon Jul 8 04:25:07 2024 +0000 Commit: Vitaly Zdanevich <zdanevich.vitaly <AT> ya <DOT> ru> CommitDate: Mon Jul 8 04:25:07 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=f0eb17f7
dev-ml/ollama: fix --version Closes https://github.com/gentoo/guru/pull/205 Signed-off-by: Vitaly Zdanevich <zdanevich.vitaly <AT> ya.ru> dev-ml/ollama/ollama-9999.ebuild | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dev-ml/ollama/ollama-9999.ebuild b/dev-ml/ollama/ollama-9999.ebuild index a0dd04624..62369f277 100644 --- a/dev-ml/ollama/ollama-9999.ebuild +++ b/dev-ml/ollama/ollama-9999.ebuild @@ -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 . }
