summaryrefslogtreecommitdiff
path: root/build.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-12-11 19:31:37 -0600
committerJeff Carr <[email protected]>2024-12-11 19:31:37 -0600
commitdae2653975b6db822633430a97adbb21b52a99ff (patch)
tree40e9fe53f9149ef090fb7bd40d2c77709b7904c8 /build.go
parent0235d4d0961d71acd3b678dad009d68713bb6621 (diff)
use 'all' instead of 'loop'
Diffstat (limited to 'build.go')
-rw-r--r--build.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/build.go b/build.go
index 14c9f6f..5b3abf2 100644
--- a/build.go
+++ b/build.go
@@ -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 {