Skip to content

Commit 188d68d

Browse files
authored
v.util.version: fix output for V full version when VCURRENTHASH not defined (#24264)
1 parent 13645e2 commit 188d68d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vlib/v/util/version/version.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ pub const v_version = '0.4.10'
66

77
pub fn full_hash() string {
88
build_hash := vhash()
9-
if build_hash == vcurrent_hash() {
9+
if vcurrent_hash() == '' || build_hash == vcurrent_hash() {
1010
return build_hash
1111
}
1212
return '${build_hash}.${vcurrent_hash()}'

0 commit comments

Comments
 (0)