diff options
| author | Jeff Carr <[email protected]> | 2024-12-17 06:37:00 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-12-17 06:37:00 -0600 |
| commit | ee7e8d5b2ba38bcc53b210c9a04ccff0de4a4f19 (patch) | |
| tree | f7de75c50610d1fd7891834c9af7f0e555c145ce /goWork.go | |
| parent | b2e51ccb9efc326fda8615b1d2ad9f2ea3f16652 (diff) | |
lots of changes in gitpb
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()) } */ } |
