serpent-os / moss

The safe, fast and sane package manager for Linux
https://serpentos.com
72 stars 10 forks source link

Show Git hash in `moss -v` output #84

Closed der-eismann closed 6 months ago

der-eismann commented 7 months ago

Right now moss -v only prints 0.1.0 as defined in the Cargo.toml. Would be great if it would print some useful info like the Git hash or build date. Example from a Go tool we build:

$ aws-nuke version
version:     v2.20.0
build date:  Wed Nov 30 13:05:49 CET 2022
scm hash:    4643a3b06dc983708010a0bec7964f794899b7b4
environment: sysop@eduard-laser
go version:  go1.19.3
ermo commented 7 months ago

@tarkah Any chance you could be persuaded to look at this...?