You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Workspace.moduleSource(): load a module from a workspace #13157
A module can receive a Workspace, but it cannot load another Dagger module from that workspace.
For example, a module should be able to say: "load the module at ./foo in this workspace" and get back a ModuleSource.
Today there is no direct core API for that. The only option is to implement a module-side shim for Workspace.moduleSource().
That shim is difficult and unreliable for several reasons:
Low-level module loading logic must be reimplemented: walking dependencies, differentiating local from remote dependencies, honoring include fields, and so on.
Activity
core: add Workspace.moduleSource to load a module from a workspace
core: add Workspace.moduleSource to load a module from a workspace
core: add Workspace.moduleSource to load a module from a workspace
feat(core): add Workspace.moduleSource to load a module from a worksp…