Skip to content

Commit 9834bb0

Browse files
authored
v.util.version: fix output for V full version (followup on issue #24263 and PR #24264) (#24478)
1 parent b9fe26c commit 9834bb0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

vlib/v/util/version/version.v

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

77
pub fn full_hash() string {
88
build_hash := vhash()
9-
if vcurrent_hash() == '' || build_hash == vcurrent_hash() {
9+
10+
if vcurrent_hash() == '' || build_hash[..7] == vcurrent_hash() {
1011
return build_hash
1112
}
1213
return '${build_hash}.${vcurrent_hash()}'

0 commit comments

Comments
 (0)