The path to the directory containing the module's source code, relative to the context directory.
(ctx context.Context)
| 11635 | |
| 11636 | // The path to the directory containing the module's source code, relative to the context directory. |
| 11637 | func (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. |
| 11650 | func (r *ModuleSource) Sync(ctx context.Context) (*ModuleSource, error) { |
no test coverage detected