hyperhq / runv

Hypervisor-based Runtime for OCI
Apache License 2.0
826 stars 129 forks source link

Show commit and version numbers #451

Closed WeiZhang555 closed 7 years ago

WeiZhang555 commented 7 years ago

Print git commit hash id when run runv -v, this will be helpful for debug.

Signed-off-by: Zhang Wei zhangwei555@huawei.com

Examples:

$ ./runv -v
runv version 0.7.0, commit: v0.7.0-145-g23cbab6-dirty

Means version: 0.7.0, latest tag is v0.7.0, we are 145 commits forward from that tag, current git commit is 23cbab6, dirty means we have uncommited changes in repo when building the binary.

WeiZhang555 commented 7 years ago

Another fix is, after changing the Makefile, runv is statically built binary now, before this, it's still dynamic binary.

Oh no, libvirt-dev doesn't have static library, so revert to dynamicallly built binary

WeiZhang555 commented 7 years ago

@gao-feng You're right, update now.

gao-feng commented 7 years ago

LGTM, thanks!