wrong lookup. must use gopath
This commit is contained in:
parent
572a5f37a6
commit
37500b9496
2
main.go
2
main.go
|
@ -38,7 +38,7 @@ func main() {
|
|||
if argv.Hostname != "" {
|
||||
HOSTNAME = argv.Hostname
|
||||
}
|
||||
forge = forgepb.InitPB()
|
||||
forge = forgepb.Init()
|
||||
|
||||
versionMap = make(map[string]string)
|
||||
repoMap = make(map[string]string)
|
||||
|
|
|
@ -65,7 +65,7 @@ func readRepomap() {
|
|||
giturl := fields[1]
|
||||
repoMap[gopath] = giturl
|
||||
|
||||
repo := forge.Repos.FindByFullPath(gopath)
|
||||
repo := forge.FindByGoPath(gopath)
|
||||
if repo != nil {
|
||||
version := repo.GetLastTag()
|
||||
age := repo.NewestAge()
|
||||
|
|
Loading…
Reference in New Issue