Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix build #107

Merged
merged 1 commit into from
May 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading