diff options
Diffstat (limited to 'goWork.go')
| -rw-r--r-- | goWork.go | 15 |
1 files changed, 9 insertions, 6 deletions
@@ -27,24 +27,27 @@ func (f *Forge) MakeGoWork() error { fmt.Fprintln(workf, "") fmt.Fprintln(workf, "use (") - all := f.Repos.SortByGoPath() + all := f.Repos.SortByFullPath() for all.Scan() { repo := all.Next() /* if !repo.IsGoLang() == "" { // skip repos that aren't go // todo: handle non-flat repos? - log.Info("skip non-go", repo.GoPath) + log.Info("skip non-go", repo.GetGoPath) continue } */ - fmt.Fprintln(workf, "\t"+repo.GoPath) + if repo.GetGoPath() == "" { + continue + } + fmt.Fprintln(workf, "\t"+repo.GetGoPath()) /* if repo.pb.Exists("go.mod") { - // log.Info("ADDING REPO", goSrcDir, repo.GoPath) + // log.Info("ADDING REPO", goSrcDir, repo.GetGoPath()) } else { - fmt.Fprintln(workf, "\t"+repo.GoPath) - log.Log(REPO, "missing go.mod for", repo.GoPath) + fmt.Fprintln(workf, "\t"+repo.GetGoPath) + log.Log(REPO, "missing go.mod for", repo.GetGoPath()) } */ } |
