premake-core icon indicating copy to clipboard operation
premake-core copied to clipboard

Add better --version information

Open crazydef opened this issue 9 months ago • 3 comments

What problem will this solve? According to the output from --version I'm currently using 5.0.0-dev. But that doesn't tell me exactly which commit my executable was built from. Having at least a timestamp of when the executable was built would enable me to see at a glance whether I might be missing some important fix or feature.

What might be a solution? Including the executable build time (and commit number for development builds) would give a clearer indication of how old (or new) a Premake executable is.

crazydef avatar Mar 11 '25 11:03 crazydef

https://github.com/premake/premake-core/pull/2405 did that in first version (prepending short sha1)...

Jarod42 avatar Mar 12 '25 10:03 Jarod42

@Jarod42 would it be better to have a separate field in the --version output for SHA1, instead of appending the short SHA1 to the version? Something like:

premake5 (Premake Build Script Generator ) 5.0.0-dev
Commit SHA: xyz.....

nickclark2016 avatar Mar 14 '25 00:03 nickclark2016

It is a possibility. Better is opinion-based though ;-) (I dislike 5.0.0-dev, and prefer 5.0.0-beta5-sha1 and no sha1 for official).

Jarod42 avatar Mar 14 '25 08:03 Jarod42