tools: prevent module updates during v build-tools, when VTEST_SANDBOXED_PACKAGING is set (#21094)

This commit is contained in:
David Legrand 2024-03-25 12:12:47 +01:00 committed by GitHub
parent 0a2346a2eb
commit 556f9f12ce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -19,7 +19,9 @@ const tools_in_subfolders = ['vast', 'vcreate', 'vdoc', 'vpm', 'vvet', 'vwhere']
const non_packaged_tools = ['gen1m', 'gen_vc', 'fast', 'wyhash']
fn main() {
util.ensure_modules_for_all_tools_are_installed('-v' in os.args)
if os.getenv('VTEST_SANDBOXED_PACKAGING') == '' {
util.ensure_modules_for_all_tools_are_installed('-v' in os.args)
}
args_string := os.args[1..].join(' ')
vexe := os.getenv('VEXE')
vroot := os.dir(vexe)