(dirPath string, cfg *modules.ModuleConfig)
| 8147 | } |
| 8148 | |
| 8149 | func configFile(dirPath string, cfg *modules.ModuleConfig) dagger.WithContainerFunc { |
| 8150 | cfgPath := filepath.Join(dirPath, "dagger.json") |
| 8151 | cfgBytes, err := json.Marshal(cfg) |
| 8152 | if err != nil { |
| 8153 | panic(err) |
| 8154 | } |
| 8155 | return fileContents(cfgPath, string(cfgBytes)) |
| 8156 | } |
| 8157 | |
| 8158 | // command for a dagger cli call direct on the host |
| 8159 | func hostDaggerCommand(ctx context.Context, t testing.TB, workdir string, args ...string) *exec.Cmd { |
no test coverage detected