Skip to content

chore: bump polyfill to pick up local dir dep includes - #8

Merged
eunomie merged 1 commit into
mainfrom
bump-polyfill-local-dir-deps
Jul 16, 2026
Merged

chore: bump polyfill to pick up local dir dep includes#8
eunomie merged 1 commit into
mainfrom
bump-polyfill-local-dir-deps

Conversation

@eunomie

@eunomie eunomie commented Jul 16, 2026

Copy link
Copy Markdown
Member

Bump the sdk-sdk polyfill pin 90ecbe4a164663 (current sdk-sdk main), picking up dagger/sdk-sdk#10: fix(polyfill): include local dir deps declared in dagger-module.toml.

Why

Generating a module that depends on a sibling local module fails with the pinned polyfill:

dagger sdk install python
dagger module init python hey
dagger module init python hello
dagger generate
cd .dagger/modules/hello
dagger module deps add ../hey
dagger generate   # fails
export generated context before directory: failed to resolve dep to source: dir module source does not contain a dagger config file

The old polyfill builds the module-source directory with an include list covering only the module's own subtree, so Directory.asModuleSource cannot resolve the ../hey dependency. sdk-sdk#10 walks local deps declared in dagger-module.toml and includes their subtrees.

Verified against the repro with this bump: dagger generate succeeds, the generated gen.py contains the dependency bindings, and the module loads and is callable.

Surfaced by @TomChv while reviewing dagger/dagger#13593 (dagger/dagger#13593 (comment)) — unrelated to that PR's changes, just the stale pin.

Bump the sdk-sdk polyfill pin to current main (a164663), picking up
fix(polyfill): include local dir deps declared in dagger-module.toml
(dagger/sdk-sdk#10). Without it, generating a module that depends on a
sibling local module fails: the polyfill built the module-source
directory without the dep's subtree, so Directory.asModuleSource could
not resolve the dependency ("dir module source does not contain a
dagger config file").

Signed-off-by: Yves Brissaud <yves@dagger.io>
@eunomie
eunomie merged commit a66d16c into main Jul 16, 2026
1 check failed
@eunomie
eunomie deleted the bump-polyfill-local-dir-deps branch July 16, 2026 13:33
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