summaryrefslogtreecommitdiff
path: root/goWork.go
diff options
context:
space:
mode:
Diffstat (limited to 'goWork.go')
-rw-r--r--goWork.go15
1 files changed, 9 insertions, 6 deletions
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())
}
*/
}