diff options
| author | Jeff Carr <[email protected]> | 2024-12-11 19:31:37 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-12-11 19:31:37 -0600 |
| commit | dae2653975b6db822633430a97adbb21b52a99ff (patch) | |
| tree | 40e9fe53f9149ef090fb7bd40d2c77709b7904c8 /build.go | |
| parent | 0235d4d0961d71acd3b678dad009d68713bb6621 (diff) | |
use 'all' instead of 'loop'
Diffstat (limited to 'build.go')
| -rw-r--r-- | build.go | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -48,9 +48,9 @@ func (f *Forge) doBuild(repo *gitpb.Repo, userFlags []string, goWhat string) err version := repo.GetCurrentBranchVersion() /* - loop := repo.Tags.SortByRefname() - for loop.Scan() { - t := loop.Next() + all := repo.Tags.SortByRefname() + for all.Scan() { + t := all.Next() log.Info("Build() tag:", t.Refname) } */ @@ -66,9 +66,9 @@ func (f *Forge) doBuild(repo *gitpb.Repo, userFlags []string, goWhat string) err } // run autogenpb in all protobuf repos - loop1 := repo.GoDeps.SortByGoPath() - for loop1.Scan() { - t := loop1.Next() + all := repo.GoDeps.SortByGoPath() + for all.Scan() { + t := all.Next() found := f.Repos.FindByGoPath(t.GetGoPath()) if found.RepoType() == "protobuf" { if err := f.runAutogenpb(found); err != nil { |
