summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-12-17 07:02:57 -0600
committerJeff Carr <[email protected]>2024-12-17 07:02:57 -0600
commit5694d40fa34d8504df5a7722d2c15f31f97c3f9f (patch)
tree0b4f8e8ea2b90f2bc6068b93eeb0fe25065574dc
parent2141737e7c1efac1fe0cd929e4da5ad18397b43c (diff)
fixes for new gitpbv0.22.41
-rw-r--r--addRepo.go2
-rw-r--r--main.go2
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)