From 6d3295b7130b0ddaf0c30c8389c3bc2a616f8903 Mon Sep 17 00:00:00 2001 From: xhd2015 Date: Tue, 14 May 2024 17:57:19 +0800 Subject: [PATCH] fix build --- cmd/xgo/coverage/serve.go | 6 ++++-- cmd/xgo/runtime_gen/core/version.go | 6 +++--- cmd/xgo/version.go | 6 +++--- runtime/core/version.go | 6 +++--- 4 files changed, 13 insertions(+), 11 deletions(-) diff --git a/cmd/xgo/coverage/serve.go b/cmd/xgo/coverage/serve.go index 09712d6c..f9e95bd9 100644 --- a/cmd/xgo/coverage/serve.go +++ b/cmd/xgo/coverage/serve.go @@ -42,7 +42,7 @@ func handleServe(args []string) error { } var lastCheckTime time.Time if s != "" { - lastCheckTime, _ = time.Parse(time.DateTime, s) + lastCheckTime, _ = time.Parse(dateTime, s) } // if tool does not exist, download it @@ -88,6 +88,8 @@ func handleServe(args []string) error { Run(serveTool, serveArgs...) } +const dateTime = "2006-01-02 15:04:05" + func downloadTool(serveTool string, recordFile string) error { goos, err := getGOOS() if err != nil { @@ -107,7 +109,7 @@ func downloadTool(serveTool string, recordFile string) error { if err != nil { return err } - recordTime := time.Now().Format(time.DateTime) + recordTime := time.Now().Format(dateTime) os.WriteFile(recordFile, []byte(recordTime), 0755) return chmodExec(serveTool) diff --git a/cmd/xgo/runtime_gen/core/version.go b/cmd/xgo/runtime_gen/core/version.go index d8ee9b87..a846f676 100755 --- a/cmd/xgo/runtime_gen/core/version.go +++ b/cmd/xgo/runtime_gen/core/version.go @@ -6,9 +6,9 @@ import ( "os" ) -const VERSION = "1.0.32" -const REVISION = "43f87cc805c73ee7a651255963b18979e84d8429+1" -const NUMBER = 213 +const VERSION = "1.0.33" +const REVISION = "045b9e4ba45b4ef1e74d71cf64ffcff98761eaef+1" +const NUMBER = 214 // these fields will be filled by compiler const XGO_VERSION = "" diff --git a/cmd/xgo/version.go b/cmd/xgo/version.go index b4dea1c3..066b2a5d 100644 --- a/cmd/xgo/version.go +++ b/cmd/xgo/version.go @@ -2,9 +2,9 @@ package main import "fmt" -const VERSION = "1.0.32" -const REVISION = "43f87cc805c73ee7a651255963b18979e84d8429+1" -const NUMBER = 213 +const VERSION = "1.0.33" +const REVISION = "045b9e4ba45b4ef1e74d71cf64ffcff98761eaef+1" +const NUMBER = 214 func getRevision() string { revSuffix := "" diff --git a/runtime/core/version.go b/runtime/core/version.go index d8ee9b87..a846f676 100644 --- a/runtime/core/version.go +++ b/runtime/core/version.go @@ -6,9 +6,9 @@ import ( "os" ) -const VERSION = "1.0.32" -const REVISION = "43f87cc805c73ee7a651255963b18979e84d8429+1" -const NUMBER = 213 +const VERSION = "1.0.33" +const REVISION = "045b9e4ba45b4ef1e74d71cf64ffcff98761eaef+1" +const NUMBER = 214 // these fields will be filled by compiler const XGO_VERSION = ""