From 20bd619e5bb764b6a8ec27f5a7df0602cdafc4ee Mon Sep 17 00:00:00 2001 From: Randy Fay Date: Thu, 26 Aug 2021 18:32:08 -0600 Subject: [PATCH] Don't use a full path for source of bind mount, for #3130 (#3194) Replace docker-compose config's full path with relative. See https://youtrack.jetbrains.com/issue/WI-61976 --- pkg/ddevapp/config.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/ddevapp/config.go b/pkg/ddevapp/config.go index 5129dde416f..ffdeb91459f 100644 --- a/pkg/ddevapp/config.go +++ b/pkg/ddevapp/config.go @@ -539,6 +539,10 @@ func (app *DdevApp) WriteDockerComposeYAML() error { if err != nil { return err } + // Replace `docker-compose config`'s full-path usage with relative pathing + // for https://youtrack.jetbrains.com/issue/WI-61976 - PhpStorm + // This is an ugly an shortsighted approach, but otherwise we'd have to parse the yaml. + fullContents = strings.Replace(fullContents, fmt.Sprintf("source: %s\n", app.AppRoot), "source: ../\n", -1) fullHandle, err := os.Create(app.DockerComposeFullRenderedYAMLPath()) if err != nil { return err