diff options
| author | Jeff Carr <[email protected]> | 2024-12-17 07:03:07 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-12-17 07:03:07 -0600 |
| commit | 62ad7e676cdb9c3618e74d9b0293718c083d6d62 (patch) | |
| tree | 63493de7a12d21d7fb9244d4c7cd4263a7950fe1 /cleanGoSum.go | |
| parent | c9f1624a72e1cf43dd32f878e56ff4e3c57ef5e6 (diff) | |
fixes for new gitpb
Diffstat (limited to 'cleanGoSum.go')
| -rw-r--r-- | cleanGoSum.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cleanGoSum.go b/cleanGoSum.go index d452e47..0cfba6e 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.FindByGoPath(depRepo.GetGoPath()) + found := forge.Repos.FindByFullPath(depRepo.GetGoPath()) if found == nil { if forge.CheckOverride(depRepo.GetGoPath()) { // skip this gopath because it's probably broken forever @@ -35,13 +35,13 @@ func cleanGoDepsCheckOk(check *gitpb.Repo) error { } // log.Info("found dep", depRepo.GetGoPath()) if depRepo.GetVersion() != found.GetMasterVersion() { - check := forge.Repos.FindByGoPath(depRepo.GoPath) + check := forge.Repos.FindByFullPath(depRepo.GetGoPath()) var ends string if check.CheckDirty() { ends = "(dirty) " } - if forge.Config.IsReadOnly(check.GoPath) { + if forge.Config.IsReadOnly(check.GetGoPath()) { ends += "(ignoring read-only) " if argv.Verbose { log.Printf("%-48s ok error .%s. vs .%s. %s", depRepo.GetGoPath(), @@ -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.FindByGoPath(gopath) + check := forge.Repos.FindByFullPath(gopath) if check == nil { log.Info("gopath does not really exist:", gopath) } |
