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

Show build information in version output #1305

Open
ferki opened this issue Apr 23, 2020 · 1 comment
Open

Show build information in version output #1305

ferki opened this issue Apr 23, 2020 · 1 comment

Comments

@ferki
Copy link
Member

ferki commented Apr 23, 2020

When rex is installed from git either manually, or via OS vendors (like Gentoo's live ebuild), it would be super useful to make that fact clear by e.g. including extra information in the rex -v output.

For the extra information the following ideas emerged so far (not strictly in this form):

  • git info, like < git:master@asdefg >
  • build date

The proposed way to do that is to include variable(s) for that similarly to our $VERSION and replace the contents during build time. Then the version printing logic can check for the presence of the information and display it if needed.

@kentfredric
Copy link
Contributor

Also worth mentioning: Some tools have different behaviour for -v and --version, -v is usually more terse and machine readable, while --version is permitted to have more verbosity.

If there's a way to do this, it might be nice.

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

No branches or pull requests

2 participants