mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-22 13:45:20 +00:00
build: Add the 'v' prefix when using the crate version
Signed-off-by: Bo Chen <chen.bo@intel.com>
This commit is contained in:
parent
b947320feb
commit
cd1c2ed31e
2
build.rs
2
build.rs
@ -9,7 +9,7 @@ extern crate clap;
|
|||||||
use std::process::Command;
|
use std::process::Command;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let mut version = crate_version!().to_string();
|
let mut version = "v".to_owned() + crate_version!();
|
||||||
|
|
||||||
if let Ok(git_out) = Command::new("git").args(&["describe", "--dirty"]).output() {
|
if let Ok(git_out) = Command::new("git").args(&["describe", "--dirty"]).output() {
|
||||||
if git_out.status.success() {
|
if git_out.status.success() {
|
||||||
|
Loading…
Reference in New Issue
Block a user