todo: fix this error, but not now

This commit is contained in:
Jeff Carr 2024-12-17 07:09:39 -06:00
parent ee7e8d5b2b
commit 7db8376213
1 changed files with 3 additions and 0 deletions

View File

@ -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"