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

Add show version hash #235

Open
a-wing opened this issue Oct 12, 2024 · 0 comments
Open

Add show version hash #235

a-wing opened this issue Oct 12, 2024 · 0 comments
Labels
enhancement New feature or request mod::infra CI/CD, package, release
Milestone

Comments

@a-wing
Copy link
Member

a-wing commented Oct 12, 2024

For example:

./live777 -V
live777 0.5.1

We need version hash, look like

git describe
v0.5.1-51-g1c578db

Maybe use shadow-rs Finally:

./live777 -V
v0.5.1-51-g1c578db
@a-wing a-wing added enhancement New feature or request mod::infra CI/CD, package, release labels Oct 12, 2024
@a-wing a-wing added this to the 0.7.0 milestone Oct 12, 2024
@a-wing a-wing modified the milestones: 0.7.0, 0.8.0 Nov 16, 2024
miaomiaowu0428 added a commit to miaomiaowu0428/live777 that referenced this issue Nov 21, 2024
use shadow-rs to get PKG_VERSION and COMMIT_HASH
`core::concat` can only accept literals, so use `const_str::concat`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request mod::infra CI/CD, package, release
Projects
None yet
Development

No branches or pull requests

1 participant