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

Method Source

sdk/python/runtime/discovery.go:165–167  ·  view source on GitHub ↗

We could use modSource.Directory("") but we'll need to use the context directory in GeneratedCode later, so rather than trying to replace the source directory in the context directory, we'll just use the context directory with subpath everywhere.

()

Source from the content-addressed store, hash-verified

163// to replace the source directory in the context directory, we'll
164// just use the context directory with subpath everywhere.
165func (m *PythonSdk) Source() *dagger.Directory {
166 return m.ContextDir.Directory(m.SubPath)
167}
168
169// getImage returns the container image address for the given name.
170func (m *PythonSdk) getImage(name string) Image {

Callers 4

invokeFunction · 0.45
loadModInfoMethod · 0.45
loadFilesMethod · 0.45
WithTemplateMethod · 0.45

Calls 1

DirectoryMethod · 0.65

Tested by

no test coverage detected