(args ...string)
| 8008 | } |
| 8009 | |
| 8010 | func 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 | |
| 8024 | func daggerNonNestedRun(args ...string) dagger.WithContainerFunc { |
| 8025 | args = append([]string{"run"}, args...) |
no test coverage detected