1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

vpm: fix show command (#11093)

This commit is contained in:
Daniel Däschle 2021-08-09 00:49:17 +02:00 committed by GitHub
parent 7a67a08d2f
commit 52a3360a47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -585,7 +585,7 @@ Installed: False
')
continue
}
path := os.join_path(os.vmodules_dir(), module_name)
path := os.join_path(os.vmodules_dir(), module_name.replace('.', os.path_separator))
mod := vmod.from_file(os.join_path(path, 'v.mod')) or { continue }
print('Name: $mod.name
Version: $mod.version