summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile6
-rw-r--r--doDebian.go1
-rw-r--r--main.go35
3 files changed, 36 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 0f47c71..8134afb 100644
--- a/Makefile
+++ b/Makefile
@@ -42,10 +42,10 @@ debian-release-force: install
rm -f ~/go/lib/go-gui/*
forge --install go.wit.com/apps/go-deb
go-deb -h # check to make sure go-deb builds
- -wit-test debian --force --verbose --release
+ wit-test debian --force --verbose --release
ls -hl ~/incoming/
dpkg-deb -c ~/incoming/go-gui-toolkits*.deb
do-aptly
-old-debian-force: install
- wit-test debian --force --verbose
+debian-release-build-only: install
+ wit-test debian --verbose --release
diff --git a/doDebian.go b/doDebian.go
index 770542e..32aa538 100644
--- a/doDebian.go
+++ b/doDebian.go
@@ -52,6 +52,7 @@ func buildDeb() {
if argv.Verbose {
log.Info("build cmd:", cmd)
+ cmd = append(cmd, "--verbose")
}
if argv.DryRun {
continue
diff --git a/main.go b/main.go
index 018446d..417b227 100644
--- a/main.go
+++ b/main.go
@@ -4,18 +4,18 @@
package main
import (
+ "debug/buildinfo"
"fmt"
"os"
"path/filepath"
"unicode"
"go.wit.com/dev/alexflint/arg"
- "go.wit.com/lib/gui/shell"
- "go.wit.com/log"
-
"go.wit.com/gui"
+ "go.wit.com/lib/gui/shell"
"go.wit.com/lib/protobuf/forgepb"
"go.wit.com/lib/protobuf/gitpb"
+ "go.wit.com/log"
)
// sent via -ldflags
@@ -38,6 +38,7 @@ func main() {
argv.doBashAuto()
os.Exit(0)
}
+ dumpDebug()
failed = make(map[*gitpb.Repo]string)
state = make(map[*gitpb.Repo]string)
@@ -289,3 +290,31 @@ func badExit(err error) {
log.Info("go-clean failed: ", err, me.forge.GetGoSrc())
os.Exit(-1)
}
+
+func dumpDebug() {
+ // Get absolute path of the currently running binary
+ exePath, err := os.Executable()
+ if err != nil {
+ fmt.Println("Error getting executable path:", err)
+ return
+ }
+
+ // Resolve symlinks if necessary
+ exePath, err = filepath.EvalSymlinks(exePath)
+ if err != nil {
+ fmt.Println("Error resolving symlink:", err)
+ return
+ }
+
+ // Read build info
+ bi, err := buildinfo.ReadFile(exePath)
+ if err != nil {
+ fmt.Println("Error reading build info:", err)
+ return
+ }
+
+ fmt.Println("Go Version:", bi.GoVersion)
+ for _, dep := range bi.Deps {
+ fmt.Printf("Dependency: %s %s\n", dep.Path, dep.Version)
+ }
+}