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.

This commit is contained in:
Delyan Angelov 2024-12-02 10:59:46 +02:00
parent b79b4bfc81
commit b383cce382
No known key found for this signature in database
GPG key ID: 66886C0F12D595ED

View file

@ -105,7 +105,11 @@ fn sync_cache() {
} }
fn main() { 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'. // Resetting VEXE here allows for `v run cmd/tools/oldv.v'.
// the parent V would have set VEXE, which later will // the parent V would have set VEXE, which later will