MCPcopy Index your code
hub / github.com/dagger/dagger / daggerNonNestedExec

Function daggerNonNestedExec

core/integration/module_test.go:8010–8022  ·  view source on GitHub ↗
(args ...string)

Source from the content-addressed store, hash-verified

8008}
8009
8010func daggerNonNestedExec(args ...string) dagger.WithContainerFunc {
8011 return func(c *dagger.Container) *dagger.Container {
8012 return c.
8013 // Don't persist stable client id between runs. this matches the behavior
8014 // of actual nested execs. Stable client IDs on the filesystem don't work
8015 // when run inside layered containers that can branch off and run in parallel.
8016 WithEnvVariable("XDG_STATE_HOME", "/tmp").
8017 WithMountedTemp("/tmp").
8018 WithExec(append([]string{"dagger"}, args...), dagger.ContainerWithExecOpts{
8019 ExperimentalPrivilegedNesting: false,
8020 })
8021 }
8022}
8023
8024func daggerNonNestedRun(args ...string) dagger.WithContainerFunc {
8025 args = append([]string{"run"}, args...)

Calls 3

WithExecMethod · 0.45
WithMountedTempMethod · 0.45
WithEnvVariableMethod · 0.45

Tested by

no test coverage detected