From b383cce3827f82749d8628c9bcbf472901dad859 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Mon, 2 Dec 2024 10:59:46 +0200 Subject: [PATCH] tools: describe more precisely what commands are used by `oldv`, so it can fail early, with a meaningful error message, if they are not present. --- cmd/tools/oldv.v | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cmd/tools/oldv.v b/cmd/tools/oldv.v index 2d919c4d363c3e..f3757638da7f5d 100644 --- a/cmd/tools/oldv.v +++ b/cmd/tools/oldv.v @@ -105,7 +105,11 @@ fn sync_cache() { } fn main() { - scripting.used_tools_must_exist(['git']) + if os.user_os() == 'windows' { + scripting.used_tools_must_exist(['git', 'wc', 'make', 'robocopy']) + } else { + scripting.used_tools_must_exist(['git', 'wc', 'make', 'rsync', 'cc']) + } // Resetting VEXE here allows for `v run cmd/tools/oldv.v'. // the parent V would have set VEXE, which later will