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 git head sha in sysinfo output #279

Closed

Conversation

jrelvas-ipc
Copy link
Contributor

Currently, we have no way of telling apart users which are using packaged Vinegar from users which are building vinegar from source. Any potential reports they make will apply to a specific point of our master branch instead of stable releases.

This PR fixes that issue by building Vinegar with the current git head's sha1 and displaying it as part of sysinfo's output, allowing us to identify if the user isn't on a stable release and at what precise point of history their Vinegar binary was built on.

imagem

imagem
If the sha can't be fetched during build time (for example, if git isn't installed or the user isn't building from a git repository), then N/A is shown.

Now Vinegar is built with head's latest commit sha, which is shown in sysinfo's output. 
If the sha can't be determined (for instance, if vinegar was built from a tarball with no git info), it's displayed as N/A
@apprehensions
Copy link
Member

This is up to the user. I have requested the AUR git package maintainer for example to implement this via make VERSION=whatever.

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

Successfully merging this pull request may close these issues.

2 participants