summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-28 23:41:09 -0500
committerJeff Carr <[email protected]>2025-10-28 23:41:09 -0500
commit7dc4eb2609ee5728abd4dc5359a02a058d9c7dab (patch)
tree8a946b940eae9f292168730e014c61158396ec95
parent8425a45712155cd28c8744ec491219424d2d1635 (diff)
notsure
-rw-r--r--Makefile4
-rw-r--r--build.go2
2 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 01e4341..82a4cb2 100644
--- a/Makefile
+++ b/Makefile
@@ -4,8 +4,8 @@ VERSION = $(shell git describe --tags)
BUILDTIME = $(shell date +%s)
run: clean goimports vet install
- go-deb --buildversion "4"
- go-deb --keep-files --arch riscv64 --buildversion "4"
+ # go-deb --buildversion "4"
+ VERBOSE=true go-deb --keep-files --arch riscv64 --buildversion "4"
# builds a .deb of go-deb and writes the file here in this directory
deb.default:
diff --git a/build.go b/build.go
index c22d40c..013137b 100644
--- a/build.go
+++ b/build.go
@@ -8,6 +8,7 @@ import (
"strings"
"time"
+ "go.wit.com/lib/cobol"
"go.wit.com/lib/debian"
"go.wit.com/lib/gui/shell"
"go.wit.com/lib/protobuf/argvpb"
@@ -113,6 +114,7 @@ func buildPackage(repo *gitpb.Repo) (bool, error) {
cmd = append(cmd, "-ldflags", "-X "+flag)
}
+ me.pb.DebInfo.BuildDate = cobol.Time(time.Now())
err := repo.RunVerbose(cmd)
if err != nil {
return false, fmt.Errorf("go build err %v", err)