Skip to content

Commit

Permalink
fix: devcontainer read config race condition (#927)
Browse files Browse the repository at this point in the history
Signed-off-by: Toma Puljak <[email protected]>
  • Loading branch information
Tpuljak authored Aug 19, 2024
1 parent d3e1c43 commit 2d29a48
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/docker/create_devcontainer.go
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,9 @@ func (d *DockerClient) readDevcontainerConfig(opts *CreateProjectOptions, paths
"--config=" + paths.TargetConfigFilePath,
"--override-config=/tmp/devcontainer.json",
"--include-merged-configuration",
"&&",
"sleep",
"1",
}...)

output, err := d.execInContainer(strings.Join(devcontainerCmd, " "), opts, paths, paths.ProjectTarget, socketForwardId, false, nil)
Expand Down

0 comments on commit 2d29a48

Please sign in to comment.