Replace version git command to get the last tag

This commit is contained in:
Arnaud 2025-09-12 12:17:57 +02:00 committed by Eric
parent 163540bde7
commit 1e07c25f1d
No known key found for this signature in database

View File

@ -475,7 +475,7 @@ func prover*(self: CodexConf): bool =
self.persistence and self.persistenceCmd == PersistenceCmd.prover
proc getCodexVersion(): string =
let tag = strip(staticExec("git tag"))
let tag = strip(staticExec("git describe --tags --abbrev=0"))
if tag.isEmptyOrWhitespace:
return "untagged build"
return tag