compose: fix deprecated Load func

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax 2023-10-21 08:30:51 +02:00
parent 05a0fdf744
commit c043c9229e
No known key found for this signature in database
GPG Key ID: 3248E46B6BB8C7F7

View File

@ -1,6 +1,7 @@
package bake
import (
"context"
"os"
"path/filepath"
"strings"
@ -31,7 +32,7 @@ func ParseCompose(cfgs []compose.ConfigFile, envs map[string]string) (*Config, e
if envs == nil {
envs = make(map[string]string)
}
cfg, err := loader.Load(compose.ConfigDetails{
cfg, err := loader.LoadWithContext(context.Background(), compose.ConfigDetails{
ConfigFiles: cfgs,
Environment: envs,
}, func(options *loader.Options) {