From ee7e8d5b2ba38bcc53b210c9a04ccff0de4a4f19 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 17 Dec 2024 06:37:00 -0600 Subject: lots of changes in gitpb --- goWork.go | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'goWork.go') diff --git a/goWork.go b/goWork.go index f8f75d8..9310f04 100644 --- a/goWork.go +++ b/goWork.go @@ -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()) } */ } -- cgit v1.2.3