From 188d68d32dda570e148f77ef988e971dc782c17d Mon Sep 17 00:00:00 2001 From: Laurent Cheylus Date: Sun, 20 Apr 2025 02:25:56 +0200 Subject: [PATCH] v.util.version: fix output for V full version when VCURRENTHASH not defined (#24264) --- vlib/v/util/version/version.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/v/util/version/version.v b/vlib/v/util/version/version.v index a33f6d3a1c..e4b41f37df 100644 --- a/vlib/v/util/version/version.v +++ b/vlib/v/util/version/version.v @@ -6,7 +6,7 @@ pub const v_version = '0.4.10' pub fn full_hash() string { build_hash := vhash() - if build_hash == vcurrent_hash() { + if vcurrent_hash() == '' || build_hash == vcurrent_hash() { return build_hash } return '${build_hash}.${vcurrent_hash()}'