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

Method ModuleTypesExp

sdk/python/runtime/main.go:195–211  ·  view source on GitHub ↗

Container for executing the Python module runtime

(
	ctx context.Context,
	modSource *dagger.ModuleSource,
	introspectionJSON *dagger.File,
	outputFilePath string,
)

Source from the content-addressed store, hash-verified

193
194// Container for executing the Python module runtime
195func (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
214func (m *PythonSdk) Common(

Callers 1

invokeFunction · 0.80

Calls 4

CommonMethod · 0.95
WithInstallMethod · 0.45
WithEntrypointMethod · 0.45
WithEnvVariableMethod · 0.45

Tested by

no test coverage detected