mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +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
1 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue