mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-07-17 08:57:07 +08:00
vendor: update compose-go to v2.4.8
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
7
vendor/github.com/compose-spec/compose-go/v2/loader/extends.go
generated
vendored
7
vendor/github.com/compose-spec/compose-go/v2/loader/extends.go
generated
vendored
@ -27,10 +27,6 @@ import (
|
||||
"github.com/compose-spec/compose-go/v2/types"
|
||||
)
|
||||
|
||||
// as we use another service definition by `extends`, we must exclude attributes which creates dependency to another service
|
||||
// see https://github.com/compose-spec/compose-spec/blob/main/05-services.md#restrictions
|
||||
var exclusions = []string{"depends_on", "volumes_from"}
|
||||
|
||||
func ApplyExtends(ctx context.Context, dict map[string]any, opts *Options, tracker *cycleTracker, post ...PostProcessor) error {
|
||||
a, ok := dict["services"]
|
||||
if !ok {
|
||||
@ -123,9 +119,6 @@ func applyServiceExtends(ctx context.Context, name string, services map[string]a
|
||||
},
|
||||
})
|
||||
}
|
||||
for _, exclusion := range exclusions {
|
||||
delete(source, exclusion)
|
||||
}
|
||||
merged, err := override.ExtendService(source, service)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
Reference in New Issue
Block a user