remove all the old testing things()

This commit is contained in:
Jeff Carr 2024-12-01 22:36:36 -06:00
parent dc3fe4bd2e
commit be026e8edc
4 changed files with 6 additions and 9 deletions

View File

@ -37,8 +37,7 @@ func (f *Forge) standardHeader(r *ForgeConfig) string {
// print a human readable table to STDOUT
func (f *Forge) ConfigPrintTable() {
if f == nil {
log.Info("WTF forge == nil")
panic("WTF forge == nil")
return
}
log.Info(standardHeader())
loop := f.Config.SortByGoPath()

View File

@ -18,7 +18,6 @@ func Init() *Forge {
goSrcDir, err := f.findGoSrc()
if err != nil {
log.Warn("forge init() findGoSrc()", err)
panic("forge init() findGoSrc()")
}
os.Setenv("FORGE_GOSRC", goSrcDir)
}

View File

@ -220,7 +220,7 @@ func cloneActual(newdir, basedir, giturl string) error {
}
// git clone didn't really work but did make a directory
log.Info("fullpath is probably empty", fullpath)
panic("crapnuts. rmdir fullpath here?")
return errors.New("crapnuts. rmdir fullpath here? " + fullpath)
}
// check the server for the current go path to git url mapping

View File

@ -4,14 +4,14 @@ import (
"os/user"
"go.wit.com/lib/protobuf/gitpb"
"go.wit.com/log"
)
/*
func (f *Forge) NewGoPath(gopath string) (*gitpb.Repo, error) {
newr, err := f.Repos.NewGoPath(f.goSrc, gopath)
if err != nil {
log.Log(FORGEPBWARN, "init failed", err)
panic("crapnuts")
return nil, err
}
log.Info("init worked for", newr.GoPath)
// try to guess what the 'master' branch is
@ -41,10 +41,9 @@ func (f *Forge) NewGoPath(gopath string) (*gitpb.Repo, error) {
newr.SetUserBranchName(uname + "FIXME")
}
f.Repos.ConfigSave()
panic("forgepb got here")
// return newr, err
return newr, err
}
*/
func (f *Forge) VerifyBranchNames(newr *gitpb.Repo) {
// log.Info("init worked for", newr.GoPath)