mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
v.util: extract v.util.version, use it to speed up building v repl, v up and v doctor
This commit is contained in:
@@ -2,7 +2,7 @@ module main
|
||||
|
||||
import os
|
||||
import v.pref
|
||||
import v.util
|
||||
import v.util.version
|
||||
import v.util.recompilation
|
||||
|
||||
struct App {
|
||||
@@ -29,8 +29,8 @@ fn main() {
|
||||
os.chdir(app.vroot)
|
||||
println('Updating V...')
|
||||
app.update_from_master()
|
||||
v_hash := util.githash(false)
|
||||
current_hash := util.githash(true)
|
||||
v_hash := version.githash(false)
|
||||
current_hash := version.githash(true)
|
||||
// println(v_hash)
|
||||
// println(current_hash)
|
||||
if v_hash == current_hash {
|
||||
|
||||
Reference in New Issue
Block a user