more human readable but standard version timestamp
This commit is contained in:
parent
b8d0864c37
commit
e8f29e593d
3
build.go
3
build.go
|
@ -115,7 +115,8 @@ func (f *Forge) doBuild(repo *gitpb.Repo, userFlags []string, goWhat string) err
|
||||||
|
|
||||||
// set standard ldflag options
|
// set standard ldflag options
|
||||||
now := time.Now()
|
now := time.Now()
|
||||||
datestamp := now.UTC().Format("2006/01/02_1504_UTC")
|
// datestamp := now.UTC().Format("2006/01/02_1504_UTC")
|
||||||
|
datestamp := now.UTC().Format("2006-01-02_15:04:05_UTC") // 2006-01-02 15:04:05 UTC
|
||||||
// log.Info("datestamp =", datestamp)
|
// log.Info("datestamp =", datestamp)
|
||||||
// add some standard golang flags
|
// add some standard golang flags
|
||||||
ldflags := "-X main.VERSION=" + version + " "
|
ldflags := "-X main.VERSION=" + version + " "
|
||||||
|
|
Loading…
Reference in New Issue