diff --git a/cmd/xgo/runtime_gen/core/version.go b/cmd/xgo/runtime_gen/core/version.go index 406ee7ec..69967012 100755 --- a/cmd/xgo/runtime_gen/core/version.go +++ b/cmd/xgo/runtime_gen/core/version.go @@ -7,8 +7,8 @@ import ( ) const VERSION = "1.0.25" -const REVISION = "9028d0e560172d8b5c5ccba73491eed2886ddd6c+1" -const NUMBER = 189 +const REVISION = "4e07bbae9c2c6c3dc7acf471b763a7fed0fcd66d+1" +const NUMBER = 196 // these fields will be filled by compiler const XGO_VERSION = "" diff --git a/cmd/xgo/version.go b/cmd/xgo/version.go index a03f9412..0ae1332e 100644 --- a/cmd/xgo/version.go +++ b/cmd/xgo/version.go @@ -3,8 +3,8 @@ package main import "fmt" const VERSION = "1.0.25" -const REVISION = "c84c8a6b5fa49005a741ff078078c16d317b1709+1" -const NUMBER = 195 +const REVISION = "4e07bbae9c2c6c3dc7acf471b763a7fed0fcd66d+1" +const NUMBER = 196 func getRevision() string { revSuffix := "" diff --git a/runtime/core/version.go b/runtime/core/version.go index 08260435..69967012 100644 --- a/runtime/core/version.go +++ b/runtime/core/version.go @@ -7,8 +7,8 @@ import ( ) const VERSION = "1.0.25" -const REVISION = "c84c8a6b5fa49005a741ff078078c16d317b1709+1" -const NUMBER = 195 +const REVISION = "4e07bbae9c2c6c3dc7acf471b763a7fed0fcd66d+1" +const NUMBER = 196 // these fields will be filled by compiler const XGO_VERSION = "" diff --git a/script/git-hooks/main.go b/script/git-hooks/main.go index 1f7405f9..e544bdeb 100644 --- a/script/git-hooks/main.go +++ b/script/git-hooks/main.go @@ -89,6 +89,12 @@ func preCommitCheck(noCommit bool) error { } } + // run generate + err = cmd.Dir(rootDir).Run("go", "run", "./script/generate", "xgo-runtime") + if err != nil { + return err + } + files = append(files, filepath.Join("cmd", "xgo", "runtime_gen")) if !noCommit { err = cmd.Run("git", append([]string{"add"}, files...)...) if err != nil {