Skip to content

generate: stage local dependency closure before codegen#12

Draft
TomChv wants to merge 4 commits into
mainfrom
feat/aggregate-local-dep-in-worskpace-when-generating
Draft

generate: stage local dependency closure before codegen#12
TomChv wants to merge 4 commits into
mainfrom
feat/aggregate-local-dep-in-worskpace-when-generating

Conversation

@TomChv

@TomChv TomChv commented Jul 23, 2026

Copy link
Copy Markdown
Member

Uses the new ModuleSource.generateLocalDependencies engine API. Before generating each managed module, generateAll (the @generate function) and Mod.generate stage the module's transitive local dependency closure onto the workspace via withChanges, then generate against the staged workspace — so the module's codegen sees up-to-date dependency bindings, including dependencies owned by other SDKs.

Depends on

PR chain

Both SDK PRs depend on the engine PR (#13715). The polyfill scoping fix is merged.

TomChv added 2 commits July 23, 2026 13:43
Before generating each managed module, stage its transitive local
dependency closure via ModuleSource.generateLocalDependencies and overlay
it onto the workspace, so the module's codegen sees up-to-date dependency
bindings — including dependencies owned by other SDKs. The staged
dependency codegen is ephemeral: it appears in both the fork's before and
after, so it cancels in the merge, leaving only each module's own changes.

Signed-off-by: Vasek - Tom C <tom@dagger.io>
Temporary: point the polyfill dependency at
fix/module-generate-scope-to-path (dagger/polyfill#5) so multi-module /
workspace-root generate works. Revert to @main once that PR merges.

Signed-off-by: Vasek - Tom C <tom@dagger.io>
TomChv added 2 commits July 23, 2026 16:22
Signed-off-by: Vasek - Tom C <tom@dagger.io>
dagger/polyfill#5 merged; point the polyfill dependency at @main.

Signed-off-by: Vasek - Tom C <tom@dagger.io>
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