diff options
| author | Jeff Carr <[email protected]> | 2025-10-02 19:08:27 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-02 19:08:27 -0500 |
| commit | 82cc40997fa54e5500670e2f5151b706436c1245 (patch) | |
| tree | 7be148114419160501bf844cbbcf0c619e9b82dd | |
| parent | d7e37d3743b96e3bd1be0ae95fbf3a99354f8c1f (diff) | |
do smart dates on --version
| -rw-r--r-- | build.go | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -101,7 +101,8 @@ func buildPackage(repo *gitpb.Repo) (bool, error) { cmd := []string{"go", "build"} // set standard ldflag options now := time.Now() - datestamp := now.UTC().Format("2006/01/02_1504_UTC") + var datestamp string + datestamp = log.Sprintf("%d", now.Unix()) log.Info("datestamp =", datestamp) // add some standard golang flags var ldflags string |
