summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-15 08:10:03 -0500
committerJeff Carr <[email protected]>2025-10-15 08:10:03 -0500
commit206beef575a90417cee5681a028bc899588eb44d (patch)
tree3f06c13093e844d0701185a2936a5ae716bfcbb5
parenta5171316b4335c69ca6ad946a37260b939fd7494 (diff)
around and around the block until it works
-rw-r--r--build.go9
1 files changed, 4 insertions, 5 deletions
diff --git a/build.go b/build.go
index 420c88e..f1570c1 100644
--- a/build.go
+++ b/build.go
@@ -111,6 +111,7 @@ func buildPackage(repo *gitpb.Repo) (bool, error) {
for _, flag := range argv.Ldflags {
cmd = append(cmd, "-ldflags", "-X "+flag)
}
+ cmd = append(cmd, "-o", me.pb.Package)
err := repo.RunVerbose(cmd)
if err != nil {
@@ -119,11 +120,9 @@ func buildPackage(repo *gitpb.Repo) (bool, error) {
log.Warn("go build worked")
}
- fullfilename = me.pb.Package
-
- if !shell.Exists(fullfilename) {
- log.Warn("build failed. filename does not exist", fullfilename)
- return false, errors.New("missing " + fullfilename)
+ if !shell.Exists(me.pb.Package) {
+ log.Warn("build failed. filename does not exist", me.pb.Package)
+ return false, errors.New("missing " + me.pb.Package)
}
if shell.Exists("files") {