wasn't reloading versions
This commit is contained in:
parent
339393a88a
commit
af50986812
|
@ -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() {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue