mirror of
https://github.com/vlang/v.git
synced 2025-08-04 02:07:28 -04:00
v.util.version: fix output for V full version when VCURRENTHASH not defined (#24264)
This commit is contained in:
parent
13645e2456
commit
188d68d32d
@ -6,7 +6,7 @@ pub const v_version = '0.4.10'
|
|||||||
|
|
||||||
pub fn full_hash() string {
|
pub fn full_hash() string {
|
||||||
build_hash := vhash()
|
build_hash := vhash()
|
||||||
if build_hash == vcurrent_hash() {
|
if vcurrent_hash() == '' || build_hash == vcurrent_hash() {
|
||||||
return build_hash
|
return build_hash
|
||||||
}
|
}
|
||||||
return '${build_hash}.${vcurrent_hash()}'
|
return '${build_hash}.${vcurrent_hash()}'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user