diff options
| author | Jeff Carr <[email protected]> | 2025-11-02 08:57:52 -0600 | 
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-11-02 08:57:52 -0600 | 
| commit | 1208b1625852b3c1622a45f0f1f8b816574c8c05 (patch) | |
| tree | 1416a583bc45017a66564c1e328a4d99eedb06c4 | |
| parent | 1269abed5695348c75b3da9b30fbfb8420833de1 (diff) | |
new names in forgepbdevel
| -rw-r--r-- | doBuild.debian.go | 10 | ||||
| -rw-r--r-- | doBuild.go | 25 | ||||
| -rw-r--r-- | doPublish.go | 8 | 
3 files changed, 12 insertions, 31 deletions
diff --git a/doBuild.debian.go b/doBuild.debian.go index 4944907..6906c14 100644 --- a/doBuild.debian.go +++ b/doBuild.debian.go @@ -118,13 +118,8 @@ func doBuildDeb(all *gitpb.Repos) (string, error) {  	}  	me.forge.ConfigRill(16, 16) -	stats := me.forge.RunOnRepos(all, runFromDL) -	for s, stat := range stats { -		if stat.Err != nil { -			return "ERROR WITH buildDeb " + s, stat.Err -		} -	} -	if totalBuilt == 0 { +	built := me.forge.RunOnRepos(all, runFromDL) +	if built.Len() == 0 {  		if argv.DryRun {  			log.Info("")  			return "--dry-run TRUE (nothing done)", nil @@ -143,6 +138,7 @@ func doBuildDeb(all *gitpb.Repos) (string, error) {  	return "all .deb built ok", nil  } +// build a .deb package for a repo  func runFromDL(repo *gitpb.Repo) error {  	var err error  	cmd := repo.DirtyList @@ -154,29 +154,14 @@ func doInstall(all *gitpb.Repos) error {  	me.forge.ConfigRill(16, 16)  	os.Setenv("GO111MODULE", "off") -	stats := me.forge.RunOnRepos(found, doInstallRepo) +	failed := me.forge.RunOnRepos(found, doInstallRepo)  	os.Unsetenv("GO111MODULE") -	failed := gitpb.NewRepos() -	for s, stat := range stats { -		if stat.Err == nil { -			continue -		} -		// log.Info("CRAP. INSTALL FAILED", config.FormatDuration(dur), s, stat.Err) -		msg := "go install FAILED " + s -		log.Info(msg) -		found := me.forge.Repos.FindByFullPath(s) -		if found == nil { -			log.Info("found", found, "'"+s+"'") -			panic("wrong namespace logic. couldn't find repo from stats") -		} -		failed.Append(found) -	}  	os.Remove(filepath.Join(env.Get("homedir"), "go/bin/forged"))  	if failed.Len() > 0 { -		for r := range failed.IterAll() { -			log.Info("r.Namespace", r.Namespace) -		} -		failed.SortNamespace() +		// for r := range failed.IterAll() { +		// 	log.Info("r.Namespace", r.Namespace) +		// } +		// failed.SortNamespace()  		footer = failed.PrintForgedTable()  		log.Info("TABLE WITH NULLS", footer)  		argvpb.BadExit("go install Failed for: "+footer, nil) diff --git a/doPublish.go b/doPublish.go index 9ac5ea8..b474436 100644 --- a/doPublish.go +++ b/doPublish.go @@ -48,18 +48,18 @@ func doPublish() error {  	env.PrintTable()  	log.Printf("Running go-mod-clean on (%d) repos. (1 second per hundred)\n", me.forge.Repos.Len()) -	restored := me.forge.RunOnReposNew(me.forge.Repos, rillRestore) +	restored := me.forge.RunOnRepos(me.forge.Repos, rillRestore)  	restored = restored.SortActual()  	footer := restored.PrintPublishNewTB()  	fmt.Printf("restored.len(%d) with errors: %s\n", restored.Len(), footer) -	// publish := me.forge.RunOnReposNewDumb(me.forge.Repos, rePrepareReleaseNew) // doesn't use Rill() -	publish := me.forge.RunOnReposNew(me.forge.Repos, rePrepareReleaseNew) +	// publish := me.forge.RunOnReposSlow(me.forge.Repos, rePrepareReleaseNew) // doesn't use Rill() +	publish := me.forge.RunOnRepos(me.forge.Repos, rePrepareReleaseNew)  	if publish == nil {  		return errors.New("nothing to publish. you actually have to write code first")  	}  	for repo := range publish.IterAll() { -		err := me.forge.CheckUpdatingGoDeps(repo.GoDeps, publish) +		err := me.forge.CheckUpdatingGoDeps(repo.GoInfo.GoDeps, publish)  		if err != nil {  			repo.State = fmt.Sprintf("%s err (%v)\n", repo.Namespace, err)  		} else {  | 
