mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-05-18 17:37:46 +08:00
compose: fix deprecated Load func
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
parent
05a0fdf744
commit
c043c9229e
@ -1,6 +1,7 @@
|
|||||||
package bake
|
package bake
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"context"
|
||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"strings"
|
"strings"
|
||||||
@ -31,7 +32,7 @@ func ParseCompose(cfgs []compose.ConfigFile, envs map[string]string) (*Config, e
|
|||||||
if envs == nil {
|
if envs == nil {
|
||||||
envs = make(map[string]string)
|
envs = make(map[string]string)
|
||||||
}
|
}
|
||||||
cfg, err := loader.Load(compose.ConfigDetails{
|
cfg, err := loader.LoadWithContext(context.Background(), compose.ConfigDetails{
|
||||||
ConfigFiles: cfgs,
|
ConfigFiles: cfgs,
|
||||||
Environment: envs,
|
Environment: envs,
|
||||||
}, func(options *loader.Options) {
|
}, func(options *loader.Options) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user