wrong lookup. must use gopath

This commit is contained in:
Jeff Carr 2024-12-18 03:35:08 -06:00
parent 572a5f37a6
commit 37500b9496
2 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ func main() {
if argv.Hostname != "" { if argv.Hostname != "" {
HOSTNAME = argv.Hostname HOSTNAME = argv.Hostname
} }
forge = forgepb.InitPB() forge = forgepb.Init()
versionMap = make(map[string]string) versionMap = make(map[string]string)
repoMap = make(map[string]string) repoMap = make(map[string]string)

View File

@ -65,7 +65,7 @@ func readRepomap() {
giturl := fields[1] giturl := fields[1]
repoMap[gopath] = giturl repoMap[gopath] = giturl
repo := forge.Repos.FindByFullPath(gopath) repo := forge.FindByGoPath(gopath)
if repo != nil { if repo != nil {
version := repo.GetLastTag() version := repo.GetLastTag()
age := repo.NewestAge() age := repo.NewestAge()