diff options
| author | Jeff Carr <[email protected]> | 2025-09-11 22:14:57 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-09-11 22:14:57 -0500 |
| commit | eda91e3af66e4c894f35c13a393a01238464b750 (patch) | |
| tree | 10135af0d368e2d68d267931673996bd9c8ee850 /goWork.go | |
| parent | 6c3162f7ce42a85afcff0b984fe6972f96fd3c8a (diff) | |
stop using GoSrc()
Diffstat (limited to 'goWork.go')
| -rw-r--r-- | goWork.go | 18 |
1 files changed, 1 insertions, 17 deletions
@@ -18,7 +18,7 @@ func (f *Forge) MakeGoWork() error { // has gone terribly wrong return errors.New("if you want a go.work file in ~/go/src/, touch it first") } - filename := filepath.Join(f.GetGoSrc(), "go.work") + filename := filepath.Join(f.Config.ReposDir, "go.work") workf, err := os.OpenFile(filename, os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0644) if err != nil { return err @@ -32,26 +32,10 @@ func (f *Forge) MakeGoWork() error { 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.GetGoPath) - continue - } - */ if repo.GetGoPath() == "" { continue } fmt.Fprintln(workf, "\t"+repo.GetGoPath()) - /* - if repo.pb.Exists("go.mod") { - // log.Info("ADDING REPO", goSrcDir, repo.GetGoPath()) - } else { - fmt.Fprintln(workf, "\t"+repo.GetGoPath) - log.Log(REPO, "missing go.mod for", repo.GetGoPath()) - } - */ } fmt.Fprintln(workf, ")") return nil |
