From 7db8376213128cc05eacc9fe4434c006bbc7d326 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 17 Dec 2024 07:09:39 -0600 Subject: [PATCH] todo: fix this error, but not now --- build.go | 3 +++ 1 file changed, 3 insertions(+) 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"