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

apps: include git describe version string #733

Merged
merged 1 commit into from
Jan 12, 2022
Merged

Conversation

juped
Copy link
Member

@juped juped commented Dec 21, 2021

Include a version string from git describe to use in --version
output, falling back on the crate version if no git repository is
found.

This doesn't actually work, because Cargo is bad and there's no way to force build.rs to rerun. Forcing it to rerun on .git changes might seem to work, but it doesn't - we may be in a worktree and .git may be a file pointing to the main repository. Better approaches welcome.

@juped
Copy link
Member Author

juped commented Dec 21, 2021

Addresses #665, albeit correctly (one cannot include branch names in version strings)

Include a version string from `git describe` to use in --version
output, falling back on the crate version if no git repository is
found.
juped added a commit that referenced this pull request Jan 10, 2022
* ray/git-describe-version:
  apps: include `git describe` version string
juped added a commit that referenced this pull request Jan 10, 2022
* ray/git-describe-version:
  apps: include `git describe` version string
juped added a commit that referenced this pull request Jan 10, 2022
* ray/git-describe-version:
  apps: include `git describe` version string
@juped juped merged commit 9920d65 into master Jan 12, 2022
@juped juped deleted the ray/git-describe-version branch January 12, 2022 15:40
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.

1 participant