vlang

/

v Public
0 commits 40 issues 0 pull requests 0 contributors Discussions Projects CI

symlinked modules aren't found #19

Describe the bug

Can't compile my program because v can't find symlinked modules in ~/.vmodules

Reproduction Steps

Something linke this

ls -lah ~/.vmodules/einar_hjortdal/
total 0
drwxr-xr-x. 2 einar einar 143 dic 10 10:46 .
drwx------. 5 einar einar  75 giu  2 14:48 ..
lrwxrwxrwx  1 einar einar  56 dic 10 10:46 bandsintown -> /home/einar/Documents/projects/vlang/active/bandsintown/
lrwxrwxrwx  1 einar einar  50 apr 30  2025 dotenv -> /home/einar/Documents/projects/vlang/active/dotenv
lrwxrwxrwx  1 einar einar  52 apr 30  2025 firebird -> /home/einar/Documents/projects/vlang/active/firebird
lrwxrwxrwx  1 einar einar  49 apr 30  2025 luuid -> /home/einar/Documents/projects/vlang/active/luuid
lrwxrwxrwx  1 einar einar  49 lug 23  2025 peony -> /home/einar/Documents/projects/vlang/active/peony
lrwxrwxrwx  1 einar einar  50 apr 30  2025 redict -> /home/einar/Documents/projects/vlang/active/redict
lrwxrwxrwx  1 einar einar  53 apr 30  2025 sensorpro -> /home/einar/Documents/projects/vlang/active/sensorpro
lrwxrwxrwx  1 einar einar  52 apr 30  2025 sessions -> /home/einar/Documents/projects/vlang/active/sessions
lrwxrwxrwx  1 einar einar  51 apr 30  2025 slugify -> /home/einar/Documents/projects/vlang/active/slugify

Expected Behavior

symlinked modules work

Current Behavior

firebird.v:5:1: builder error: cannot import module "einar_hjortdal.luuid" (not found)
    3 | import log
    4 | import strconv
    5 | import einar_hjortdal.luuid
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~
    6 | import einar_hjortdal.firebird
    7 | import conduit
object_response.v:6:1: builder error: cannot import module "einar_hjortdal.firebird" (not found)
    4 | import veb
    5 | import conduit
    6 | import einar_hjortdal.firebird
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    7 | 
    8 | fn format_none_date_time(ndt ?firebird.DateTime) ?time.Time {

routes_admin_product.v:5:1: builder error: cannot import module "einar_hjortdal.slugify" (not found)
    3 | import json
    4 | import veb
    5 | import einar_hjortdal.slugify
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    6 | 
    7 | // lists products
...

Possible Solution

Shouldn't #27281 fix this?

Additional Information/Context

No response

V version

V 0.5.1 d358576

Environment details (OS name and version, etc.)

V full version V 0.5.1 58f18573557247e9c743f7d60e5b3ab783f74479.d358576
OS linux, "openmamba release 2026.4.1 for x86_64 (rolling)"
Processor 8 cpus, 64bit, little endian, Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz
Memory 13.5GB/31.17GB
V executable /home/einar/.local/lib64/v/v
V last modified time 2026-06-08 08:27:27
V home dir OK, value: /home/einar/.local/lib64/v
VMODULES OK, value: /home/einar/.vmodules
VTMP OK, value: /tmp/v_1000
Current working dir OK, value: /home/einar/Documents/projects/vlang/active/peony
Git version git version 2.54.0
V git status weekly.2026.03-2238-gd3585768
.git/config present true
cc version cc (GCC) 16.1.0
gcc version gcc (GCC) 16.1.0
clang version N/A
tcc version tcc version 0.9.28rc 2025-02-13 HEAD@f8bd136d (x86_64 Linux)
tcc git status thirdparty-linux-amd64 696c1d84
emcc version N/A
glibc version ldd (GNU libc) 2.43

[!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.