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

Method Load

sdk/python/runtime/main.go:244–258  ·  view source on GitHub ↗

Get all the needed information from the module's metadata and source files

(ctx context.Context, modSource *dagger.ModuleSource)

Source from the content-addressed store, hash-verified

242
243// Get all the needed information from the module's metadata and source files
244func (m *PythonSdk) Load(ctx context.Context, modSource *dagger.ModuleSource) (*PythonSdk, error) {
245 m.ModSource = modSource
246 m.ContextDir = modSource.ContextDirectory()
247 debug, err := modSource.SDK().Debug(ctx)
248 if err != nil {
249 return nil, fmt.Errorf("runtime module load: %w", err)
250 }
251 m.Debug = debug
252
253 if err := m.Discovery.Load(ctx, m); err != nil {
254 return nil, fmt.Errorf("runtime module load: %w", err)
255 }
256
257 return m, nil
258}
259
260// Initialize the base Python container
261//

Callers 1

CommonMethod · 0.95

Calls 4

LoadMethod · 0.65
ContextDirectoryMethod · 0.45
DebugMethod · 0.45
SDKMethod · 0.45

Tested by

no test coverage detected