Replace version git command to get the last tag

This commit is contained in:
Arnaud 2025-09-12 12:17:57 +02:00
parent 4848e6f600
commit 6c99857adc
No known key found for this signature in database
GPG Key ID: B8FBC178F10CA7AE

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