From 444ca1e69083325c9752fe070b65b4cc0345ac91 Mon Sep 17 00:00:00 2001 From: Sebastian Choren Date: Thu, 26 Oct 2023 19:50:23 -0300 Subject: [PATCH] fix(cli): update docker compose library call (#3315) * fix(cli): update docker compose library call * updating project working dir --------- Co-authored-by: Oscar Reyes --- cli/installer/docker_compose.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cli/installer/docker_compose.go b/cli/installer/docker_compose.go index fe7a3c052e..9a95c850f6 100644 --- a/cli/installer/docker_compose.go +++ b/cli/installer/docker_compose.go @@ -1,6 +1,7 @@ package installer import ( + "context" _ "embed" "fmt" "io" @@ -324,12 +325,14 @@ func getCompleteProject(ui cliUI.UI, config configuration) *types.Project { ui.Panic(err) } - project, err := loader.Load(types.ConfigDetails{ - WorkingDir: workingDir, + project, err := loader.LoadWithContext(context.Background(), types.ConfigDetails{ + WorkingDir: fmt.Sprintf("%s/tracetest", workingDir), ConfigFiles: configFiles, Environment: map[string]string{ "TRACETEST_DEV": "", }, + }, func(o *loader.Options) { + o.SetProjectName("tracetest", true) }) if err != nil { ui.Exit(fmt.Errorf("cannot parse docker-compose file: %w", err).Error())