(dir, sdk, contents string)
| 8239 | } |
| 8240 | |
| 8241 | func sdkSourceAt(dir, sdk, contents string) dagger.WithContainerFunc { |
| 8242 | path := sdkSourceFile(sdk) |
| 8243 | if sdk == "python" && dir != "." && dir != "test" { |
| 8244 | path = strings.ReplaceAll(path, "test", dir) |
| 8245 | } |
| 8246 | return fileContents(filepath.Join(dir, path), contents) |
| 8247 | } |
| 8248 | |
| 8249 | func sdkSourceFile(sdk string) string { |
| 8250 | if strings.HasPrefix(sdk, "github.com/vito/dang/dagger-sdk") { |
no test coverage detected