summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-12-17 13:12:52 -0600
committerJeff Carr <[email protected]>2024-12-17 13:12:52 -0600
commit5434341272574da3baf8843c92c586b7429b468f (patch)
tree0540260f36dc4480a08bafddd942e99cb4d457f5
parent62ad7e676cdb9c3618e74d9b0293718c083d6d62 (diff)
fix Find(gopath0
-rw-r--r--cleanGoSum.go6
-rw-r--r--main.go2
2 files changed, 4 insertions, 4 deletions
diff --git a/cleanGoSum.go b/cleanGoSum.go
index 0cfba6e..e909c29 100644
--- a/cleanGoSum.go
+++ b/cleanGoSum.go
@@ -23,7 +23,7 @@ func cleanGoDepsCheckOk(check *gitpb.Repo) error {
all := check.GoDeps.SortByGoPath()
for all.Scan() {
depRepo := all.Next()
- found := forge.Repos.FindByFullPath(depRepo.GetGoPath())
+ found := forge.FindByGoPath(depRepo.GetGoPath())
if found == nil {
if forge.CheckOverride(depRepo.GetGoPath()) {
// skip this gopath because it's probably broken forever
@@ -35,7 +35,7 @@ func cleanGoDepsCheckOk(check *gitpb.Repo) error {
}
// log.Info("found dep", depRepo.GetGoPath())
if depRepo.GetVersion() != found.GetMasterVersion() {
- check := forge.Repos.FindByFullPath(depRepo.GetGoPath())
+ check := forge.FindByGoPath(depRepo.GetGoPath())
var ends string
if check.CheckDirty() {
ends = "(dirty) "
@@ -143,7 +143,7 @@ func trimGoSum(check *gitpb.Repo) error {
if good[gopath] {
fmt.Fprintf(newf, "%s %s\n", gopath, stuff[gopath])
fmt.Fprintf(newf, "%s %s\n", gopath, modver[gopath])
- check := forge.Repos.FindByFullPath(gopath)
+ check := forge.FindByGoPath(gopath)
if check == nil {
log.Info("gopath does not really exist:", gopath)
}
diff --git a/main.go b/main.go
index 5878b37..2564bf4 100644
--- a/main.go
+++ b/main.go
@@ -80,7 +80,7 @@ func findPwdRepo() *gitpb.Repo {
gopath := strings.TrimPrefix(pwd, forge.GetGoSrc())
gopath = strings.Trim(gopath, "/")
log.Info("findRepo() trying gopath", gopath)
- check = forge.Repos.FindByFullPath(gopath)
+ check = forge.Repos.FindByFullPath(pwd)
if check != nil {
log.Info("findRepo() worked", check.GetGoPath())
return check