mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
vup: add more diagnostic lines for v -v up
This commit is contained in:
parent
b9e408c499
commit
9b0ef781dc
@ -43,6 +43,9 @@ fn main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn (app App) update_from_master() {
|
fn (app App) update_from_master() {
|
||||||
|
if app.is_verbose {
|
||||||
|
println('> updating from master ...')
|
||||||
|
}
|
||||||
if !os.exists('.git') {
|
if !os.exists('.git') {
|
||||||
// initialize as if it had been cloned
|
// initialize as if it had been cloned
|
||||||
app.git_command('init')
|
app.git_command('init')
|
||||||
@ -59,6 +62,9 @@ fn (app App) update_from_master() {
|
|||||||
fn (app App) recompile_v() {
|
fn (app App) recompile_v() {
|
||||||
// NB: app.vexe is more reliable than just v (which may be a symlink)
|
// NB: app.vexe is more reliable than just v (which may be a symlink)
|
||||||
vself := '$app.vexe self'
|
vself := '$app.vexe self'
|
||||||
|
if app.is_verbose {
|
||||||
|
println('> recompiling v itself with `$vself` ...')
|
||||||
|
}
|
||||||
if self_result := os.exec(vself) {
|
if self_result := os.exec(vself) {
|
||||||
println(self_result.output)
|
println(self_result.output)
|
||||||
if self_result.exit_code == 0 {
|
if self_result.exit_code == 0 {
|
||||||
|
Loading…
Reference in New Issue
Block a user