Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose Build Info #712

Open
bjornbytes opened this issue Oct 5, 2023 · 3 comments
Open

Expose Build Info #712

bjornbytes opened this issue Oct 5, 2023 · 3 comments
Labels

Comments

@bjornbytes
Copy link
Owner

Request from chat

it would be cool if lovr.getVersion() returned the branch
and build time
those might be useful on the error screen/error printout too

Branch? Commit hash? Date/time? Commit message?!

lovr.getVersion? lovr.getBuildInfo?

@KelseyHigham
Copy link
Contributor

i like that hashes are short and easy to recognize, but there's a couple downsides

  • you gotta copy and paste them, because they're hard to remember and write
  • they're not sequential, so you gotta look at git/hub to see how old your version is

@KelseyHigham
Copy link
Contributor

i think my ideal would be like "0.16.dev.2023-09-25"
or shorten it by rolling over months, "0.16.dev.2125"

@bjornbytes
Copy link
Owner Author

bjornbytes commented Oct 6, 2023

Running git describe in lovr's repo prints v0.16.0-541-gc0fb: the last tagged version, the number of changes since then, plus the hash. (Jotting this down here). Also, if you're on exactly the tagged version, it will just print v0.16.0 which is kinda cool.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants