From 8db945ec5298f11a9ddd1a7b19afdfb1641f1bca Mon Sep 17 00:00:00 2001 From: irishgreencitrus <43090499+irishgreencitrus@users.noreply.github.com> Date: Mon, 22 Aug 2022 09:23:32 +0100 Subject: [PATCH] vpm: force `v install` to clone git submodules too (#15487) --- 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 849a59ebe8..e68805b994 100644 --- a/cmd/tools/vpm.v +++ b/cmd/tools/vpm.v @@ -21,11 +21,11 @@ const ( supported_vcs_systems = ['git', 'hg'] supported_vcs_folders = ['.git', '.hg'] supported_vcs_update_cmds = { - 'git': 'git pull' + 'git': 'git pull --recurse-submodules' // pulling with `--depth=1` leads to conflicts, when the upstream is more than 1 commit newer 'hg': 'hg pull --update' } supported_vcs_install_cmds = { - 'git': 'git clone --depth=1' + 'git': 'git clone --depth=1 --recursive --shallow-submodules' 'hg': 'hg clone' } supported_vcs_outdated_steps = {