Skip to content

Commit

Permalink
Don't use a full path for source of bind mount, for #3130 (#3194)
Browse files Browse the repository at this point in the history
Replace docker-compose config's full path with relative. See https://youtrack.jetbrains.com/issue/WI-61976
  • Loading branch information
rfay committed Aug 27, 2021
1 parent a326e74 commit 20bd619
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/ddevapp/config.go
Expand Up @@ -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
Expand Down

0 comments on commit 20bd619

Please sign in to comment.