rewrite core ENV configuration

This commit is contained in:
Jeff Carr 2025-09-03 13:53:46 -05:00
parent 30dcc8af9f
commit f6803f07f1
5 changed files with 5 additions and 45 deletions

1
.gitignore vendored
View File

@ -1,4 +1,5 @@
*.swp *.swp
*.pb
go.mod go.mod
go.sum go.sum
/resources/*.so /resources/*.so

View File

@ -7,8 +7,7 @@ BUILDTIME = $(shell date +%Y.%m.%d_%H%M)
# make andlabs # try the andlabs gui plugin (uses GTK) # make andlabs # try the andlabs gui plugin (uses GTK)
default: verbose install default: verbose install
# forge clean forge patch get
forge
vet: vet:
@GO111MODULE=off go vet @GO111MODULE=off go vet

View File

@ -1,2 +0,0 @@
$be926ad9-f07f-484c-adf2-d96eeabf3079'v0.0.45 go.wit.com/lib/protobuf/forgepb

View File

@ -38,7 +38,9 @@ func doPatch() error {
} }
if argv.Patch.List != nil { if argv.Patch.List != nil {
return doPatchList() me.forge.Patchsets.PrintTable()
// return doPatchList()
return nil
} }
// if no option is given to patch, list out the // if no option is given to patch, list out the

View File

@ -36,39 +36,6 @@ func (w *stdPatchsetTableWin) Toggle() {
w.win.Toggle() w.win.Toggle()
} }
/*
func loadUpstreamPatchsets() {
psets, err := me.forge.GetPatchesets()
if err != nil {
log.Info("Get Patchsets failed", err)
return
}
var foundnew bool
all := psets.All()
for all.Scan() {
pset := all.Next()
found := me.psets.FindByUuid(pset.Uuid)
if found == nil {
log.Info("new patchset", pset.Name, pset.Uuid)
pset.State = "new"
foundnew = true
} else {
log.Info("patchset already on disk", found.Name, found.State)
pset.State = found.State
if pset.State == "" {
pset.State = "new"
}
}
}
if foundnew {
log.Info("should save these here")
me.psets = psets
savePatchsets()
}
}
*/
func makePatchsetsWin() *stdPatchsetTableWin { func makePatchsetsWin() *stdPatchsetTableWin {
dwin := new(stdPatchsetTableWin) dwin := new(stdPatchsetTableWin)
dwin.win = gadgets.NewGenericWindow("forge current patchsets", "patchset options") dwin.win = gadgets.NewGenericWindow("forge current patchsets", "patchset options")
@ -86,13 +53,6 @@ func makePatchsetsWin() *stdPatchsetTableWin {
dwin.doPatchsetsTable(me.psets) dwin.doPatchsetsTable(me.psets)
}) })
/*
grid.NewButton("upstream", func() {
loadUpstreamPatchsets()
dwin.doPatchsetsTable(me.psets)
})
*/
grid.NewButton("save", func() { grid.NewButton("save", func() {
if me.psets == nil { if me.psets == nil {
log.Info("No Patchsets loaded") log.Info("No Patchsets loaded")