1
0
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:
Delyan Angelov
2021-07-27 12:35:54 +03:00
parent cb7be87d4e
commit 6134c4870b
12 changed files with 134 additions and 122 deletions

View File

@@ -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 {