FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix module wiring with required Workspace args by kpenfound · Pull Request #13933 · dagger/dagger · GitHub

/ dagger Public

fix module wiring with required Workspace args - #13933

Open
kpenfound wants to merge 2 commits into
dagger:mainfrom
kpenfound:fix/module_wiring_required_workspaces
Open

fix module wiring with required Workspace args#13933
kpenfound wants to merge 2 commits into
dagger:mainfrom
kpenfound:fix/module_wiring_required_workspaces

Conversation

Copy link
Copy Markdown
Contributor

Problem: #13850 made declared Workspace! args truly required. dagql rejects a missing non-null arg before the injection hook that used to fill it, so any engine code that builds a module call by hand must now supply the
workspace itself. resolveModuleRef (core/schema/address.go), which resolves settings.x = ":" wiring, still selected the referenced module's constructor and function with no args — so wiring to any
module whose constructor (or referenced function) takes a Workspace failed with missing required argument: "ws".

Fix: resolveModuleRef now fills required Workspace args on both selectors via the same helper #13850 added for the other hand-built selectors (core.WithBoundWorkspaceArgs, exported), resolving the bound workspace in
context, else currentWorkspace.

Test: new workspace-container-provider fixture (required ws on constructor and on a function) + TestUpModuleWiring/provider_with_required_Workspace_arg; fails without the fix, passes with it. Existing wiring fixtures
had no Workspace args, which is why this wasn't caught.

Signed-off-by: kpenfound <kyle@dagger.io>
Signed-off-by: kpenfound <kyle@dagger.io>
kpenfound requested a review from TomChv August 19, 2026 21:20
kpenfound added this to the v1.0.0 milestone Aug 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL