Skip to content

Commit

Permalink
tools: describe more precisely what commands are used by oldv, so i…
Browse files Browse the repository at this point in the history
…t can fail early, with a meaningful error message, if they are not present.
  • Loading branch information
spytheman committed Dec 2, 2024
1 parent b79b4bf commit b383cce
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmd/tools/oldv.v
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b383cce

Please sign in to comment.