From 5694d40fa34d8504df5a7722d2c15f31f97c3f9f Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 17 Dec 2024 07:02:57 -0600 Subject: [PATCH] fixes for new gitpb --- addRepo.go | 2 +- main.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/addRepo.go b/addRepo.go index f65c688..b58cd83 100644 --- a/addRepo.go +++ b/addRepo.go @@ -64,7 +64,7 @@ func (c *controlBox) addRepo(path string) { } if c.GoPath.String() == "" { - c.GoPath.SetText(repo.GoPath) + c.GoPath.SetText(repo.GetGoPath()) } lasttag := repo.GetLastTagVersion() diff --git a/main.go b/main.go index 392f80e..dd5109c 100644 --- a/main.go +++ b/main.go @@ -43,7 +43,7 @@ func main() { forge = forgepb.Init() os.Setenv("REPO_WORK_PATH", forge.GetGoSrc()) - repo = forge.Repos.FindByGoPath(argv.Repo) + repo = forge.FindByGoPath(argv.Repo) if repo == nil { log.Info("repo not found. you need to clone", argv.Repo) os.Exit(-1)