summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-12-17 07:09:39 -0600
committerJeff Carr <[email protected]>2024-12-17 07:09:39 -0600
commit7db8376213128cc05eacc9fe4434c006bbc7d326 (patch)
treebe27158489afd8b50d29e489d65e841e2f840b08
parentee7e8d5b2ba38bcc53b210c9a04ccff0de4a4f19 (diff)
todo: fix this error, but not now
-rw-r--r--build.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/build.go b/build.go
index c51eb83..5cf94d6 100644
--- a/build.go
+++ b/build.go
@@ -77,6 +77,9 @@ func (f *Forge) doBuild(repo *gitpb.Repo, userFlags []string, goWhat string) err
// get the version
version := repo.GetCurrentBranchVersion()
+ if version == "" {
+ version = "forgeErr"
+ }
if repo.CheckDirty() {
version = version + "-dirty"