trunk-recorder icon indicating copy to clipboard operation
trunk-recorder copied to clipboard

--version option or alternative

Open hayden-t opened this issue 4 years ago • 3 comments

It would be create be able to tell what version or git commit your code/binary came from...?

hayden-t avatar Dec 13 '21 20:12 hayden-t

This is a good idea - I feel like there is a way to bake the latest git commit hash into the CMake as an environment variable. I will have to look this up. I am pretty bad about remembering to rev the version number, so the git commit is prob better. I will try to look into it.

robotastic avatar Dec 14 '21 02:12 robotastic

@robotastic I had added this into dsd a long time ago https://github.com/szechyjs/dsd/commit/e40e89ae816beef82d4fcb5fe885b0c4c4f890b5 Might have some clues you can use...

dreinhold avatar Dec 14 '21 03:12 dreinhold

excellent ( )

hayden-t avatar Dec 14 '21 10:12 hayden-t