vpm: fix show command (#11093)

pull/11112/head
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
1 changed files with 1 additions and 1 deletions

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