DEV Community

Discussion on: Versioning binaries in Go

Collapse
 
yoursunny profile image
Junxiao Shi

I used to have this, but I'm told that including build time goes against reproducible builds.
Now I switched to use the commit time as seen in git history:
github.com/usnistgov/ndn-dpdk/tree...
I even added Go code so that the version is printed in the same format as Go modules would.

Collapse
 
gcdcoder profile image
Gustavo Castillo

Nice! I'll take a look, thanks for sharing.