summaryrefslogtreecommitdiff
path: root/goWork.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-12-17 06:37:00 -0600
committerJeff Carr <[email protected]>2024-12-17 06:37:00 -0600
commitee7e8d5b2ba38bcc53b210c9a04ccff0de4a4f19 (patch)
treef7de75c50610d1fd7891834c9af7f0e555c145ce /goWork.go
parentb2e51ccb9efc326fda8615b1d2ad9f2ea3f16652 (diff)
lots of changes in gitpb
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())
}
*/
}