Temorary fixing overrides

WIP: this breaks the -c flag, but it's a start

We can now use compose.katenary.yaml file as a default override.
This commit is contained in:
2024-04-03 21:35:04 +02:00
parent 76aa332dc2
commit dc47e73b4b

View File

@@ -9,9 +9,7 @@ import (
// Parse compose files and return a project. The project is parsed with dotenv, osenv and profiles.
func Parse(profiles []string, dockerComposeFile ...string) (*types.Project, error) {
if len(dockerComposeFile) > 0 {
cli.DefaultFileNames = dockerComposeFile
}
cli.DefaultOverrideFileNames = append(cli.DefaultOverrideFileNames, "compose.katenary.yaml")
options, err := cli.NewProjectOptions(nil,
cli.WithProfiles(profiles),
@@ -21,6 +19,7 @@ func Parse(profiles []string, dockerComposeFile ...string) (*types.Project, erro
cli.WithNormalization(true),
cli.WithInterpolation(true),
cli.WithResolvedPaths(false),
//cli.WithResolvedPaths(true),
)
if err != nil {