MCPcopy Create free account
hub / github.com/dagger/dagger / SourceSubpath

Method SourceSubpath

sdk/python/runtime/internal/dagger/dagger.gen.go:11637–11647  ·  view source on GitHub ↗

The path to the directory containing the module's source code, relative to the context directory.

(ctx context.Context)

Source from the content-addressed store, hash-verified

11635
11636// The path to the directory containing the module's source code, relative to the context directory.
11637func (r *ModuleSource) SourceSubpath(ctx context.Context) (string, error) {
11638 if r.sourceSubpath != nil {
11639 return *r.sourceSubpath, nil
11640 }
11641 q := r.query.Select("sourceSubpath")
11642
11643 var response string
11644
11645 q = q.Bind(&response)
11646 return response, q.Execute(ctx)
11647}
11648
11649// Forces evaluation of the module source, including any loading into the engine and associated validation.
11650func (r *ModuleSource) Sync(ctx context.Context) (*ModuleSource, error) {

Callers 1

loadModInfoMethod · 0.45

Calls 3

SelectMethod · 0.65
BindMethod · 0.45
ExecuteMethod · 0.45

Tested by

no test coverage detected