Skip to content

Commit

Permalink
tools: skip download count increment when vpm runs in CI by default (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ttytm committed Nov 15, 2023
1 parent 4e43944 commit bc24683
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/tools/vpm/settings.v
Expand Up @@ -23,6 +23,7 @@ fn init_settings() VpmSettings {
if os.getenv('VPM_DEBUG') != '' {
log.set_level(.debug)
}
no_inc_env := os.getenv('VPM_NO_INCREMENT')
return VpmSettings{
is_help: '-h' in opts || '--help' in opts || 'help' in cmds
is_once: '--once' in opts
Expand All @@ -31,6 +32,6 @@ fn init_settings() VpmSettings {
vcs: if '--hg' in opts { 'hg' } else { 'git' }
server_urls: cmdline.options(args, '--server-urls')
vmodules_path: os.vmodules_dir()
no_dl_count_increment: os.getenv('VPM_NO_INCREMENT') != ''
no_dl_count_increment: os.getenv('CI') != '' || (no_inc_env != '' && no_inc_env != '0')
}
}

0 comments on commit bc24683

Please sign in to comment.