v.util.version: fix output for V full version when VCURRENTHASH not defined (#24264)

This commit is contained in:
Laurent Cheylus 2025-04-20 02:25:56 +02:00 committed by GitHub
parent 13645e2456
commit 188d68d32d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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()}'