From 21c5cadc59de28f580afcdaedb5ee9bb7108a5ff Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Wed, 21 Sep 2022 15:43:36 +0300 Subject: [PATCH] tools: fix `v install https://some/url_with_underscores` (make --git the default for URLs) --- cmd/tools/vpm.v | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/tools/vpm.v b/cmd/tools/vpm.v index 5fb5ea614e..02f55796f4 100644 --- a/cmd/tools/vpm.v +++ b/cmd/tools/vpm.v @@ -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 {