diff options
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -34,7 +34,7 @@ func main() { if argv.All { // run this on every single repo // do this before publishing new golang versions - all := forge.Repos.SortByGoPath() + all := forge.Repos.SortByFullPath() for all.Scan() { check = all.Next() if err := doMain(check); err != nil { @@ -67,7 +67,7 @@ func main() { forge.ConfigSave() } - log.Info("forge.FinalGoDepsCheck() worked :", check.GoPath) + log.Info("forge.FinalGoDepsCheck() worked :", check.GetGoPath()) okExit(check, "go.sum seems clean") } @@ -80,9 +80,9 @@ func findPwdRepo() *gitpb.Repo { gopath := strings.TrimPrefix(pwd, forge.GetGoSrc()) gopath = strings.Trim(gopath, "/") log.Info("findRepo() trying gopath", gopath) - check = forge.Repos.FindByGoPath(gopath) + check = forge.Repos.FindByFullPath(gopath) if check != nil { - log.Info("findRepo() worked", check.GoPath) + log.Info("findRepo() worked", check.GetGoPath()) return check } } @@ -91,7 +91,7 @@ func findPwdRepo() *gitpb.Repo { func saveAsMetadata(repo *gitpb.Repo) error { cname := repo.GetCurrentBranchName() - if repo.GoPrimitive { + if repo.GoInfo.GoPrimitive { if err := repo.AutogenSave([]string{"go.mod"}, cname, true); err != nil { return err } @@ -112,7 +112,7 @@ func restoreFromGoPkg(repo *gitpb.Repo) error { if rver == "" { return errors.New("could not get master version") } - modfile := filepath.Join(homedir, "go/pkg/mod", repo.GoPath+"@"+rver, "go.mod") + modfile := filepath.Join(homedir, "go/pkg/mod", repo.GetGoPath()+"@"+rver, "go.mod") log.Info("mod path should be", modfile) data, err := os.ReadFile(modfile) if err != nil { @@ -125,7 +125,7 @@ func restoreFromGoPkg(repo *gitpb.Repo) error { defer modf.Close() modf.Write(data) - modfile = filepath.Join(homedir, "go/pkg/mod", repo.GoPath+"@"+rver, "go.sum") + modfile = filepath.Join(homedir, "go/pkg/mod", repo.GetGoPath()+"@"+rver, "go.sum") log.Info("mod path should be", modfile) data, err = os.ReadFile(modfile) if err == nil { |
