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:
parent
304258162c
commit
d7bb887c2a
@ -308,6 +308,11 @@ fn get_installed_modules() []string {
|
||||
if dir in excluded_dirs || !os.is_dir(adir) {
|
||||
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
|
||||
mods := os.ls(adir) or {
|
||||
continue
|
||||
|
Loading…
Reference in New Issue
Block a user