vpm: fix `v update` for offical v modules too, like ui or markdown
parent
304258162c
commit
d7bb887c2a
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue