chore(packages) Use compose-go v2
This prepares the next release. We need to support the compose v2 syntax as soon as possible to avoid accumulating technical debt.
This commit is contained in:
@@ -2,11 +2,12 @@
|
||||
package parser
|
||||
|
||||
import (
|
||||
"context"
|
||||
"log"
|
||||
"path/filepath"
|
||||
|
||||
"github.com/compose-spec/compose-go/cli"
|
||||
"github.com/compose-spec/compose-go/types"
|
||||
"github.com/compose-spec/compose-go/v2/cli"
|
||||
"github.com/compose-spec/compose-go/v2/types"
|
||||
)
|
||||
|
||||
func init() {
|
||||
@@ -53,5 +54,6 @@ func Parse(profiles []string, envFiles []string, dockerComposeFile ...string) (*
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return cli.ProjectFromOptions(options)
|
||||
ctx := context.TODO()
|
||||
return cli.ProjectFromOptions(ctx, options)
|
||||
}
|
||||
|
Reference in New Issue
Block a user