mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
v install: always build vget
This commit is contained in:
parent
a0b59783a2
commit
25d97ebbe4
@ -133,16 +133,16 @@ fn main() {
|
|||||||
}
|
}
|
||||||
vroot := os.dir(os.executable())
|
vroot := os.dir(os.executable())
|
||||||
vget := '$vroot/tools/vget'
|
vget := '$vroot/tools/vget'
|
||||||
if !os.file_exists(vget) {
|
if true {
|
||||||
println('Building vget...')
|
//println('Building vget...')
|
||||||
os.chdir(vroot + '/tools')
|
os.chdir(vroot + '/tools')
|
||||||
vexec := os.args[0]
|
vexec := os.args[0]
|
||||||
_ := os.exec('$vexec vget.v') or {
|
_ := os.exec('$vexec vget.v') or {
|
||||||
panic(err)
|
panic(err)
|
||||||
return // TODO remove return
|
return // TODO remove return
|
||||||
}
|
}
|
||||||
println('Done.')
|
//println('Done.')
|
||||||
}
|
}
|
||||||
println('Installing module ${mod}...')
|
println('Installing module ${mod}...')
|
||||||
_ := os.exec('$vget $mod') or {
|
_ := os.exec('$vget $mod') or {
|
||||||
panic(err)
|
panic(err)
|
||||||
|
Loading…
Reference in New Issue
Block a user