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

vpm: fix v update for offical v modules too, like ui or markdown

This commit is contained in:
Delyan Angelov 2020-05-31 19:18:24 +03:00
parent 304258162c
commit d7bb887c2a

View File

@ -308,6 +308,11 @@ fn get_installed_modules() []string {
if dir in excluded_dirs || !os.is_dir(adir) { if dir in excluded_dirs || !os.is_dir(adir) {
continue continue
} }
if os.exists( os.join_path(adir, 'v.mod') ) && os.exists( os.join_path(adir, '.git', 'config') ){
// an official vlang module with a short module name, like `vsl`, `ui` or `markdown`
modules << dir
continue
}
author := dir author := dir
mods := os.ls(adir) or { mods := os.ls(adir) or {
continue continue