roc-lang / roc

A fast, friendly, functional language.
https://roc-lang.org
Universal Permissive License v1.0
4.14k stars 291 forks source link

building from source should set `roc version` #7030

Open Anton-4 opened 3 weeks ago

Anton-4 commented 3 weeks ago

If you build Roc from source and execute roc version you'll get the default value "built-from-source". It would be nice to print some useful info:

For those without git changes we can print the last commit hash and date of the commit:

built from commit faeea52, with commit timestamp Fri Aug 23 09:02:06 UTC 2024

And with changes:

built from commit faeea52 with additional changes. Commit timestamp: Fri Aug 23 09:02:06 UTC 2024

Hasnep commented 3 weeks ago

I think I'd like to tackle this issue if nobody else has already started :)