Skip to content

explicitly pass workspace to currentModule.asSDK - #13

Merged
TomChv merged 1 commit into
mainfrom
feat/as-sdk-ws
Jul 27, 2026
Merged

TomChv merged 1 commit into
mainfrom
feat/as-sdk-ws

Conversation

@TomChv

@TomChv TomChv commented Jul 27, 2026

Copy link
Copy Markdown
Member

Ports dagger/go-sdk#14 to the TypeScript SDK.

Pairs with dagger/dagger#13727.

currentModule.asSDK now takes an explicit workspace argument instead of implicitly resolving against the current workspace, so modules(ws) resolves its SDK-managed module list against the workspace it was actually handed.

The e2e modulesCwdCheck snapshots the workspace and re-anchors it at different cwds; that snapshot now has to keep dagger.toml too, since the re-anchored workspace's [modules.<sdk>.as-sdk] list is what asSDK(workspace:) reads. Without it the check fails with current module is not installed as an SDK in this workspace.

Verified with dagger --x-release=main check — 15/15 passing.

Mirrors dagger/go-sdk#14, pairs with dagger/dagger#13727.

Signed-off-by: Tom Chauveau <[email protected]>
Signed-off-by: Vasek - Tom C <[email protected]>
@TomChv
TomChv merged commit 9e080b3 into main Jul 27, 2026
16 checks passed
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.

2 participants