mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-07-14 15:37:07 +08:00
bump compose-go to v2.2.0
Signed-off-by: Guillaume Lours <705411+glours@users.noreply.github.com>
This commit is contained in:
11
vendor/github.com/compose-spec/compose-go/v2/loader/extends.go
generated
vendored
11
vendor/github.com/compose-spec/compose-go/v2/loader/extends.go
generated
vendored
@ -163,8 +163,15 @@ func getExtendsBaseFromFile(
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
services := source["services"].(map[string]any)
|
||||
_, ok := services[ref]
|
||||
m, ok := source["services"]
|
||||
if !ok {
|
||||
return nil, nil, fmt.Errorf("cannot extend service %q in %s: no services section", name, local)
|
||||
}
|
||||
services, ok := m.(map[string]any)
|
||||
if !ok {
|
||||
return nil, nil, fmt.Errorf("cannot extend service %q in %s: services must be a mapping", name, local)
|
||||
}
|
||||
_, ok = services[ref]
|
||||
if !ok {
|
||||
return nil, nil, fmt.Errorf(
|
||||
"cannot extend service %q in %s: service %q not found in %s",
|
||||
|
Reference in New Issue
Block a user