From 2d29a48b214053444fd0e199917e63e509f4c1a9 Mon Sep 17 00:00:00 2001 From: Toma Puljak Date: Mon, 19 Aug 2024 14:07:32 +0200 Subject: [PATCH] fix: devcontainer read config race condition (#927) Signed-off-by: Toma Puljak --- pkg/docker/create_devcontainer.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/docker/create_devcontainer.go b/pkg/docker/create_devcontainer.go index 5ce813a548..a1993ab441 100644 --- a/pkg/docker/create_devcontainer.go +++ b/pkg/docker/create_devcontainer.go @@ -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)