Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
xhd2015 committed May 14, 2024
1 parent 80ae5cf commit 6d3295b
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 11 deletions.
6 changes: 4 additions & 2 deletions cmd/xgo/coverage/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 {
Expand All @@ -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)
Expand Down
6 changes: 3 additions & 3 deletions cmd/xgo/runtime_gen/core/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ""
Expand Down
6 changes: 3 additions & 3 deletions cmd/xgo/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 := ""
Expand Down
6 changes: 3 additions & 3 deletions runtime/core/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ""
Expand Down

0 comments on commit 6d3295b

Please sign in to comment.