summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/build.go b/build.go
index 6042b62..dc06166 100644
--- a/build.go
+++ b/build.go
@@ -103,6 +103,7 @@ func (f *Forge) doBuild(repo *gitpb.Repo, userFlags []string, goWhat string) err
soname := fname + "." + version + ".so"
linkname := fname + ".so"
sopath := filepath.Join(homeDir, "go/lib/go-gui")
+
// if this is a plugin, use buildmode=plugin
if repo.GetRepoType() == "plugin" {
if goWhat == "install" {
@@ -118,10 +119,7 @@ func (f *Forge) doBuild(repo *gitpb.Repo, userFlags []string, goWhat string) err
// set standard ldflag options
now := time.Now()
- // 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)
- // add some standard golang flags
+ datestamp := log.Sprintf("%d", now.Unix()) // print seconds, parse in go-args --version
ldflags := "-X main.VERSION=" + version + " "
ldflags += "-X main.BUILDTIME=" + datestamp + " "
ldflags += "-X main.GUIVERSION=" + version + "" // todo: git this from the filesystem