-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Description
Describe the bug
I'm packaging V 0.4.10 for OpenBSD (lang/v
port in OpenBSD ports tree).
V compiler and tools are built from packaged sources (outside of Git sources tree). In this case, VCURRENTHASH
is not defined.
V full version output is incorrect in this case: no VCURRENTHASH
and extra dot.
$ v -v version
V 0.4.10 9b1937a87166e3327497f332bf9584ff90592617.
Reproduction Steps
Build OpenBSD lang/v
port from 0.4.10 sources => see https://github.com/openbsd/ports/tree/master/lang/v
After build and install, run V binary to get full version: v -v version
Expected Behavior
Output for V full version when VCURRENTHASH
is not defined
$ v version
V 0.4.10
$ v -v version
V 0.4.10 9b1937a87166e3327497f332bf9584ff90592617
Current Behavior
See above
Possible Solution
Fix in vlib/v/util/version/version.v
for the case when VCURRENTHASH
is not defined.
I have a patch to fix this issue => I will create a PR ASAP.
Additional Information/Context
No response
V version
V 0.4.10 11e25bc
Environment details (OS name and version, etc.)
V full version | V 0.4.10 11e25bc.11e25bc |
---|---|
OS | openbsd, 7.7, GENERIC.MP#624 |
Processor | 4 cpus, 64bit, little endian |
Memory | 1.77GB/3.98GB |
V executable | /home/fox/dev/vlang.git/v |
V last modified time | 2025-04-18 13:52:42 |
V home dir | OK, value: /home/fox/dev/vlang.git |
VMODULES | OK, value: /home/fox/.vmodules |
VTMP | OK, value: /tmp/v_1000 |
Current working dir | OK, value: /home/fox/dev/vlang.git |
Git version | git version 2.49.0 |
V git status | weekly.2025.16-14-g11e25bc9-dirty |
.git/config present | true |
cc version | OpenBSD clang version 16.0.6 |
gcc version | egcc (GCC) 11.2.0 |
clang version | OpenBSD clang version 16.0.6 |
tcc version | tcc version 0.9.28rc 2024-09-14 HEAD@b8b6a5fd (x86_64 OpenBSD) |
tcc git status | thirdparty-openbsd-amd64 8205cc59 |
emcc version | N/A |
glibc version | N/A |
Note
You can use the 👍 reaction to increase the issue's priority for developers.
Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.