comment out this code for now

This commit is contained in:
Jeff Carr 2025-01-08 00:22:39 -06:00
parent bd65b4eb45
commit 2ca9624bed
1 changed files with 13 additions and 11 deletions

View File

@ -23,18 +23,20 @@ func globalResetOptions(box *gui.Node) {
grid.NewLabel("clean start over") grid.NewLabel("clean start over")
me.deleteGoSrcPkgB = grid.NewButton("rm ~/go/src & ~/go/pkg & ~/.cache/go-build", func() { me.deleteGoSrcPkgB = grid.NewButton("rm ~/go/src & ~/go/pkg & ~/.cache/go-build", func() {
var state string = me.deleteGoSrcPkgB.String() var state string = me.deleteGoSrcPkgB.String()
loop := me.repos.View.ReposSortByName() /*
for loop.Scan() { loop := me.repos.View.ReposSortByName()
repo := loop.Repo() for loop.Scan() {
if repo.GetGoPath() == "go.wit.com/apps/autotypist" { repo := loop.Repo()
continue if repo.GetGoPath() == "go.wit.com/apps/autotypist" {
continue
}
if repo.Status.CheckDirty() {
log.Warn("repo is dirty. commit your changes first", repo.Status.Path())
me.deleteGoSrcPkgB.SetLabel("rm ~/go/src (can't. dirty repos)")
return
}
} }
if repo.Status.CheckDirty() { */
log.Warn("repo is dirty. commit your changes first", repo.Status.Path())
me.deleteGoSrcPkgB.SetLabel("rm ~/go/src (can't. dirty repos)")
return
}
}
log.Warn("no repos have uncommited changes") log.Warn("no repos have uncommited changes")
log.Warn("TODO: check things are pushed and check every dir in go/src/") log.Warn("TODO: check things are pushed and check every dir in go/src/")