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

tools: fix v install https://some/url_with_underscores (make --git the default for URLs)

This commit is contained in:
Delyan Angelov 2022-09-21 15:43:36 +03:00
parent 0871eca177
commit 21c5cadc59
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -89,6 +89,9 @@ fn main() {
module_names = manifest.dependencies.clone()
}
mut source := Source.vpm
if module_names.all(it.starts_with('https://')) {
source = Source.git
}
if '--once' in options {
module_names = vpm_once_filter(module_names)
if module_names.len == 0 {