Skip to content

Commit de48e90

Browse files
authored
v.pref: use v download for downloading the prebuilt photonwrapper shared library (#25849)
1 parent 390be00 commit de48e90

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

‎vlib/v/pref/pref.v‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -996,10 +996,8 @@ pub fn parse_args_and_show_errors(known_external_commands []string, args []strin
996996
so_url := 'https://raw.githubusercontent.com/vlang/photonbin/master/photonwrapper_${os.user_os()}_${arch}.so'
997997
if !os.exists(so_path) {
998998
println('coroutines .so not found, downloading...')
999-
os.execute_opt('wget -O "${so_path}" "${so_url}"') or {
1000-
os.execute_opt('curl -o "${so_path}" "${so_url}"') or {
1001-
panic('coroutines .so could not be downloaded with wget or curl. Download ${so_url}, place it in ${so_path} then try again.')
1002-
}
999+
os.execute_opt('${os.quoted_path(vexe)} download -o "${so_path}" "${so_url}"') or {
1000+
panic('coroutines .so could not be downloaded with `v download`. Download ${so_url}, place it in ${so_path} then try again.')
10031001
}
10041002
println('done!')
10051003
}

0 commit comments

Comments
 (0)