Hey yall, loving the progress on the go sdk. Just checked the demos from last weeks' community call, and of course I had to try it myself. Things look good! Loving the native experience.
I've got a question that I think relates to dagger/LLB.. Do I need to do anything special to execute parallel steps? I have a snippet in the golang sdk that looks like below, and the steps do not execute in parallel.
// initialize new container from image
golang := core.Container().From(golangImage)
golang2 := core.Container().From(golangImage)
// mount working directory to /src
golang = golang.WithMountedDirectory("/src", src).WithWorkdir("/src")
// execute command
cmd := golang.Exec(api.ContainerExecOpts{
Args: []string{"/bin/bash", "-c", "sleep 10 && date"},
})
cmd2 := golang2.Exec(api.ContainerExecOpts{
Args: []string{"date"},
})
I put sample code and a walkthrough here. It shows a similar setup in multi-stage docker that does execute in parallel