mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-05-18 17:37:46 +08:00
bake: fix loop references
Signed-off-by: Justin Chadwell <me@jedevc.com>
This commit is contained in:
parent
6506166f02
commit
48357ee0c6
@ -78,6 +78,7 @@ func ParseCompose(cfgs []compose.ConfigFile, envs map[string]string) (*Config, e
|
|||||||
// compose does not support nil values for labels
|
// compose does not support nil values for labels
|
||||||
labels := map[string]*string{}
|
labels := map[string]*string{}
|
||||||
for k, v := range s.Build.Labels {
|
for k, v := range s.Build.Labels {
|
||||||
|
v := v
|
||||||
labels[k] = &v
|
labels[k] = &v
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -34,9 +34,9 @@ func ReadRemoteFiles(ctx context.Context, nodes []builder.Node, url string, name
|
|||||||
var files []File
|
var files []File
|
||||||
|
|
||||||
var node *builder.Node
|
var node *builder.Node
|
||||||
for _, n := range nodes {
|
for i, n := range nodes {
|
||||||
if n.Err == nil {
|
if n.Err == nil {
|
||||||
node = &n
|
node = &nodes[i]
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user