bake: fix loop references

Signed-off-by: Justin Chadwell <me@jedevc.com>
(cherry picked from commit 48357ee0c6)
This commit is contained in:
Justin Chadwell
2023-02-01 10:12:36 +00:00
committed by CrazyMax
parent 00ed17df6d
commit b66988c824
2 changed files with 3 additions and 2 deletions

View File

@@ -34,9 +34,9 @@ func ReadRemoteFiles(ctx context.Context, nodes []builder.Node, url string, name
var files []File
var node *builder.Node
for _, n := range nodes {
for i, n := range nodes {
if n.Err == nil {
node = &n
node = &nodes[i]
continue
}
}