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 source git hash used during compilation with --version option #52

Open
ceblanton opened this issue Feb 16, 2021 · 1 comment
Open

Comments

@ceblanton
Copy link
Contributor

Is your feature request related to a problem? Please describe.
To help debug user issues, it's helpful to know exactly which source was used during the compilation. For cases where the source code is still available, one can simply check the repository. However, if the tools were installed someplace else, it can be harder to determine which source code was used. It would also be helpful to record whether the git repository used was clean or contained uncommited changes.

Describe the solution you'd like
The tools to display this provenance information using the --version option:

If compiled from a clean repository:

<command>: <package_name>(<git_hash>) <commit_date>

If compiled from a uncommited repository:

<command>: <package_name>(Uncommitted) <build_date>

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Some of this information is already captured in the automake-generated config.h file. Each tool would then need to include this file and make it available from the --version option.

@ceblanton
Copy link
Contributor Author

This could report the configure.ac version primarily, in addition to the git hash

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

No branches or pull requests

1 participant