Container for executing the Python module runtime
( ctx context.Context, modSource *dagger.ModuleSource, introspectionJSON *dagger.File, outputFilePath string, )
| 193 | |
| 194 | // Container for executing the Python module runtime |
| 195 | func (m *PythonSdk) ModuleTypesExp( |
| 196 | ctx context.Context, |
| 197 | modSource *dagger.ModuleSource, |
| 198 | introspectionJSON *dagger.File, |
| 199 | outputFilePath string, |
| 200 | ) (*dagger.Container, error) { |
| 201 | runtime, err := m.Common(ctx, modSource, introspectionJSON) |
| 202 | if err != nil { |
| 203 | return nil, err |
| 204 | } |
| 205 | runtime = runtime.WithInstall() |
| 206 | ctr := runtime.Container |
| 207 | return ctr. |
| 208 | WithEnvVariable("DAGGER_MODULE_FILE", outputFilePath). |
| 209 | WithEntrypoint([]string{RuntimeExecutablePath, "--register"}), |
| 210 | nil |
| 211 | } |
| 212 | |
| 213 | // Common steps for the ModuleRuntime and Codegen functions |
| 214 | func (m *PythonSdk) Common( |
no test coverage detected