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

vpm: force v install to clone git submodules too (#15487)

This commit is contained in:
irishgreencitrus 2022-08-22 09:23:32 +01:00 committed by GitHub
parent 47e75c68a9
commit 8db945ec52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,11 +21,11 @@ const (
supported_vcs_systems = ['git', 'hg'] supported_vcs_systems = ['git', 'hg']
supported_vcs_folders = ['.git', '.hg'] supported_vcs_folders = ['.git', '.hg']
supported_vcs_update_cmds = { 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' 'hg': 'hg pull --update'
} }
supported_vcs_install_cmds = { supported_vcs_install_cmds = {
'git': 'git clone --depth=1' 'git': 'git clone --depth=1 --recursive --shallow-submodules'
'hg': 'hg clone' 'hg': 'hg clone'
} }
supported_vcs_outdated_steps = { supported_vcs_outdated_steps = {