From 4774c89381594d83928c9c843c3e1cea190f37ee Mon Sep 17 00:00:00 2001 From: Robin Martijn Date: Tue, 22 Sep 2020 17:02:42 +0200 Subject: [PATCH] vpm: install and check all modules as lowercase modules. (#6445) --- cmd/tools/vpm.v | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/tools/vpm.v b/cmd/tools/vpm.v index ded13bd835..713946b1e3 100644 --- a/cmd/tools/vpm.v +++ b/cmd/tools/vpm.v @@ -170,7 +170,7 @@ fn vpm_install(module_names []string) { println('Skipping module "$name", since it uses an unsupported VCS {$vcs} .') continue } - mod_name_as_path := mod.name.replace('.', os.path_separator).replace('-', '_') + mod_name_as_path := mod.name.replace('.', os.path_separator).replace('-', '_').to_lower() final_module_path := os.real_path(os.join_path(settings.vmodules_path, mod_name_as_path)) if os.exists(final_module_path) { vpm_update([name]) @@ -340,7 +340,7 @@ fn vpm_remove(module_names []string) { } fn valid_final_path_of_existing_module(name string) ?string { - mod_name_as_path := name.replace('.', os.path_separator).replace('-', '_') + mod_name_as_path := name.replace('.', os.path_separator).replace('-', '_').to_lower() name_of_vmodules_folder := os.join_path(settings.vmodules_path, mod_name_as_path) final_module_path := os.real_path(name_of_vmodules_folder) if !os.exists(final_module_path) {