mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-05-18 00:47:48 +08:00
bake: fix loop references
Signed-off-by: Justin Chadwell <me@jedevc.com> (cherry picked from commit 48357ee0c6a2fb4e2e68e49ac06386f2fafa51c6)
This commit is contained in:
parent
00ed17df6d
commit
b66988c824
@ -78,6 +78,7 @@ func ParseCompose(cfgs []compose.ConfigFile, envs map[string]string) (*Config, e
|
||||
// compose does not support nil values for labels
|
||||
labels := map[string]*string{}
|
||||
for k, v := range s.Build.Labels {
|
||||
v := v
|
||||
labels[k] = &v
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user