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

Issue 235 #251

Closed
wants to merge 2 commits into from
Closed

Issue 235 #251

wants to merge 2 commits into from

Conversation

miaomiaowu0428
Copy link

use shadow-rs to get PKG_VERSION and COMMIT_HASH
core::concat can only accept literals, so use const_str::concat
It looks like:
image

use shadow-rs to get PKG_VERSION and COMMIT_HASH
`core::concat` can only accept literals, so use `const_str::concat`
Copy link

codecov bot commented Nov 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Files with missing lines Coverage Δ
src/main.rs 0.00% <ø> (ø)

... and 1 file with indirect coverage changes


🚨 Try these New Features:

@a-wing
Copy link
Member

a-wing commented Nov 22, 2024

Welcome contributor this project

CLA. please. https://github.com/binbat/woom/blob/main/.github/CLA.md#list-of-contributors

You can read this example: #95


This projec has many binary, each binary should add hash version:

  • live777
  • liveman
  • livenil
  • whipinto
  • whepfrom
  • net4mqtt

@a-wing a-wing added enhancement New feature or request mod::live777 Live777 server mod::infra CI/CD, package, release mod::liveman Cloud Manager labels Nov 22, 2024
mod log;
mod utils;

#[derive(Parser)]
#[command(version)]
#[command(version = concat!("v",build::PKG_VERSION,"-",build::SHORT_COMMIT))]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need display hash version, usually, concat string and v prefix is unnecessary

@miaomiaowu0428
Copy link
Author

Temporarily closed, try to fix failure in test

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 mod::live777 Live777 server mod::liveman Cloud Manager
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants