diff --git a/currentVersions.go b/currentVersions.go index d93df8d..624762e 100644 --- a/currentVersions.go +++ b/currentVersions.go @@ -14,10 +14,13 @@ import ( "go.wit.com/log" ) -func (repo *Repo) InitVersions() { +func (repo *Repo) reloadVersions() { repo.setMasterVersion() repo.setDevelVersion() repo.setUserVersion() + repo.setLastTag() + repo.setCurrentBranchName() + repo.setCurrentBranchVersion() } func (repo *Repo) setMasterVersion() { diff --git a/reload.go b/reload.go index 5b41ff0..24c92d7 100644 --- a/reload.go +++ b/reload.go @@ -16,12 +16,8 @@ func (repo *Repo) Reload() error { if repo.GoInfo == nil { repo.GoInfo = new(GoInfo) } - repo.ParseGoSum() - - repo.setLastTag() - repo.setCurrentBranchName() - repo.setCurrentBranchVersion() - + repo.ParseGoSum() // also sets GoPrimitive + repo.reloadVersions() repo.setRepoType() // everything has been checked, now save the mtime's diff --git a/reloadRepoType.go b/reloadRepoType.go index e1c1735..309e500 100644 --- a/reloadRepoType.go +++ b/reloadRepoType.go @@ -38,7 +38,8 @@ func (repo *Repo) GetRepoType() string { if repo.GoInfo.GoLibrary { return "library" } - return "err" + // todo: figure out what to do here. for now, binary is easiest + return "binary" } func (repo *Repo) setRepoType() {