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:
parent
0871eca177
commit
21c5cadc59
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user