todo: fix this error, but not now
This commit is contained in:
parent
ee7e8d5b2b
commit
7db8376213
3
build.go
3
build.go
|
@ -77,6 +77,9 @@ func (f *Forge) doBuild(repo *gitpb.Repo, userFlags []string, goWhat string) err
|
||||||
|
|
||||||
// get the version
|
// get the version
|
||||||
version := repo.GetCurrentBranchVersion()
|
version := repo.GetCurrentBranchVersion()
|
||||||
|
if version == "" {
|
||||||
|
version = "forgeErr"
|
||||||
|
}
|
||||||
|
|
||||||
if repo.CheckDirty() {
|
if repo.CheckDirty() {
|
||||||
version = version + "-dirty"
|
version = version + "-dirty"
|
||||||
|
|
Loading…
Reference in New Issue