Repository navigation
core: synthesize sourceMap with module name when SDK provides none - #13039
Merged
Merged
Conversation
Member
Restore the pre-dagger#11856 behavior where (*Module).namespaceSourceMap records at minimum the module name when the SDK does not attach a source map to a typedef/field/argument. When commit aa719a1 migrated source-map handling to dagql results, the synthesizing fallback was lost: the new namespaceSourceMap returns the nil sourceMap unchanged, so types/fields contributed by SDKs that don't emit source maps (dang, Java, Python, PHP, Elixir) end up in the schema without any sourceMap directive. That sourceMap.module directive is what cmd/codegen/introspection/filters.go uses to identify dependency types. With the directive missing, DependencyNames() no longer reports the dep, Exclude() no longer strips its types from the core schema, and Include() no longer produces a per-dep <name>.gen.go. The generated code ends up with the dep's types duplicated between dagger.gen.go (newly inlined) and a stale <name>.gen.go on disk, which the overlay writer leaves untouched because the new memfs no longer contains it. Re-create a minimal SourceMap whose only filled field is the module name so the downstream filtering logic keeps working for any SDK that does not provide source-position metadata. Signed-off-by: Yves Brissaud <[email protected]>
eunomie
force-pushed
the
fix-source-maps
branch
from
April 27, 2026 16:47
1d9eadf to
0f86ad4
Compare
Member
Author
Yes 😓 |
TomChv
approved these changes
Apr 27, 2026
shykes
added a commit
that referenced
this pull request
Apr 27, 2026
Regenerate checked-in go.gen.go files on top of #13039 to pick up the new GenerateDaggerRuntimes method and updated line references. Co-Authored-By: Claude Opus 4.6 <[email protected]>
shykes
added a commit
that referenced
this pull request
Apr 27, 2026
Regenerate checked-in go.gen.go files on top of #13039 to pick up the new GenerateDaggerRuntimes method and updated line references.
shykes
added a commit
that referenced
this pull request
Apr 27, 2026
Regenerate checked-in go.gen.go files on top of #13039 to pick up the new GenerateDaggerRuntimes method and updated line references.
shykes
added a commit
that referenced
this pull request
Apr 27, 2026
Run dagger generate to update go.mod/go.sum across all Go modules after rebasing on latest main with source map fix (#13039).
shykes
added a commit
that referenced
this pull request
Apr 27, 2026
Regenerate checked-in go.gen.go files on top of #13039 to pick up the new GenerateDaggerRuntimes method and updated line references.
shykes
added a commit
that referenced
this pull request
Apr 27, 2026
Run dagger generate to update go.mod/go.sum across all Go modules after rebasing on latest main with source map fix (#13039).
shykes
added a commit
that referenced
this pull request
Apr 28, 2026
Regenerate checked-in go.gen.go files on top of #13039 to pick up the new GenerateDaggerRuntimes method and updated line references. Signed-off-by: Solomon Hykes <[email protected]>
shykes
added a commit
that referenced
this pull request
Apr 28, 2026
Run dagger generate to update go.mod/go.sum across all Go modules after rebasing on latest main with source map fix (#13039). Signed-off-by: Solomon Hykes <[email protected]>
grouville
pushed a commit
to grouville/dagger
that referenced
this pull request
Apr 28, 2026
…agger#13039) Restore the pre-dagger#11856 behavior where (*Module).namespaceSourceMap records at minimum the module name when the SDK does not attach a source map to a typedef/field/argument. When commit aa719a1 migrated source-map handling to dagql results, the synthesizing fallback was lost: the new namespaceSourceMap returns the nil sourceMap unchanged, so types/fields contributed by SDKs that don't emit source maps (dang, Java, Python, PHP, Elixir) end up in the schema without any sourceMap directive. That sourceMap.module directive is what cmd/codegen/introspection/filters.go uses to identify dependency types. With the directive missing, DependencyNames() no longer reports the dep, Exclude() no longer strips its types from the core schema, and Include() no longer produces a per-dep <name>.gen.go. The generated code ends up with the dep's types duplicated between dagger.gen.go (newly inlined) and a stale <name>.gen.go on disk, which the overlay writer leaves untouched because the new memfs no longer contains it. Re-create a minimal SourceMap whose only filled field is the module name so the downstream filtering logic keeps working for any SDK that does not provide source-position metadata. Signed-off-by: Yves Brissaud <[email protected]>
shykes
added a commit
that referenced
this pull request
Apr 28, 2026
* chore: disable automatic gitignore generation for in-scope Go modules This checkpoints the first implementation step for issue 11467: the repo-scope Go modules that currently participate in dag-driven lint/tidy flows now opt out of automatic .gitignore regeneration via dagger.json. The change is intentionally mechanical and scoped to config only. It touches the 73 in-scope module roots defined by the top-level go toolchain customization, plus the root dagger.json, and leaves the .gitignore cleanup for the follow-up step. Also include the expanded plan note under scratch/ so the exact target set remains documented alongside the code change. Signed-off-by: Solomon Hykes <[email protected]> * chore: regenerate committed Go modules after disabling automatic gitignore generation Issue 11467 is about committing generated Dagger Go files so repo modules build and lint cleanly from a fresh checkout without relying on runtime regeneration. This commit records the regeneration pass after setting codegen.automaticGitignore=false on the in-scope module roots and removing the generated Go ignore entries from the source-root .gitignore files. The regeneration was performed with dagger develop, including recursive local-dependency walks where applicable, so the resulting tree now contains the committed generated bindings, updated module metadata, and the cleaned ignore files. Signed-off-by: Solomon Hykes <[email protected]> * toolchains/go: no more codegen when linting. We assume generated files are checked in Signed-off-by: Solomon Hykes <[email protected]> * chore: restore committed viztest go bindings and stop regenerating ignored Go outputs Issue 11467 needs the generated Go module outputs checked in, but several in-scope module .gitignore files were still hiding generated internal packages from the workspace view. That made golangci-lint fail to resolve imports like dagger/viztest/internal/dagger and python-sdk/internal/dagger even after the generated files were present in the tree. This change removes the stale generated-code ignore rules from the in-scope module roots, restores the dagql/idtui/viztest generated bindings, and records the small viztest go.mod/go.sum refresh produced by the regeneration pass. It does not touch the separate toolchains/go lint split or any broader codegen behavior. Signed-off-by: Solomon Hykes <[email protected]> * toolchains/go: no more codegen when checking go-tidy. We assume generated files are checked in Signed-off-by: Solomon Hykes <[email protected]> * toolchains/go: add Dagger runtime generator Expose generate-dagger-runtimes using the existing Go module enumeration and per-module runtime generation plumbing. Propagate runtime detection errors instead of dropping them. Signed-off-by: Solomon Hykes <[email protected]> * toolchains/go: remove unused ctx Signed-off-by: Solomon Hykes <[email protected]> * toolchains/go: check in generated runtime bindings Disabling lint and tidy from generating runtime bindings means those checks now assume every in-scope Go module has its generated Dagger runtime package checked in. The latest trace still failed for sdk/python/runtime and toolchains/engine-dev/notify because their generated internal/dagger packages were missing, so golangci-lint could not typecheck their dagger.gen.go imports. Regenerate the affected modules with dagger develop so sdk/python/runtime/internal/dagger/dagger.gen.go and toolchains/engine-dev/notify/internal/dagger/dagger.gen.go are present in the tree. Keep the regenerated go.mod/go.sum changes from that operation, including the gqlparser v2.5.33 bump, and regenerate toolchains/go/dagger.gen.go so the generated invoke dispatch matches TidyModule after the unused context argument was removed. Verified with dagger --progress=plain call go lint --include sdk/python/runtime/ --include toolchains/engine-dev/notify/ --include toolchains/go/. Signed-off-by: Solomon Hykes <[email protected]> * chore: regenerate Go runtime bindings after source map fix Regenerate checked-in go.gen.go files on top of #13039 to pick up the new GenerateDaggerRuntimes method and updated line references. Signed-off-by: Solomon Hykes <[email protected]> * chore: regenerate Go module dependencies Run dagger generate to update go.mod/go.sum across all Go modules after rebasing on latest main with source map fix (#13039). Signed-off-by: Solomon Hykes <[email protected]> --------- Signed-off-by: Solomon Hykes <[email protected]>
tiborvass
pushed a commit
that referenced
this pull request
Apr 30, 2026
* chore: disable automatic gitignore generation for in-scope Go modules This checkpoints the first implementation step for issue 11467: the repo-scope Go modules that currently participate in dag-driven lint/tidy flows now opt out of automatic .gitignore regeneration via dagger.json. The change is intentionally mechanical and scoped to config only. It touches the 73 in-scope module roots defined by the top-level go toolchain customization, plus the root dagger.json, and leaves the .gitignore cleanup for the follow-up step. Also include the expanded plan note under scratch/ so the exact target set remains documented alongside the code change. Signed-off-by: Solomon Hykes <[email protected]> * chore: regenerate committed Go modules after disabling automatic gitignore generation Issue 11467 is about committing generated Dagger Go files so repo modules build and lint cleanly from a fresh checkout without relying on runtime regeneration. This commit records the regeneration pass after setting codegen.automaticGitignore=false on the in-scope module roots and removing the generated Go ignore entries from the source-root .gitignore files. The regeneration was performed with dagger develop, including recursive local-dependency walks where applicable, so the resulting tree now contains the committed generated bindings, updated module metadata, and the cleaned ignore files. Signed-off-by: Solomon Hykes <[email protected]> * toolchains/go: no more codegen when linting. We assume generated files are checked in Signed-off-by: Solomon Hykes <[email protected]> * chore: restore committed viztest go bindings and stop regenerating ignored Go outputs Issue 11467 needs the generated Go module outputs checked in, but several in-scope module .gitignore files were still hiding generated internal packages from the workspace view. That made golangci-lint fail to resolve imports like dagger/viztest/internal/dagger and python-sdk/internal/dagger even after the generated files were present in the tree. This change removes the stale generated-code ignore rules from the in-scope module roots, restores the dagql/idtui/viztest generated bindings, and records the small viztest go.mod/go.sum refresh produced by the regeneration pass. It does not touch the separate toolchains/go lint split or any broader codegen behavior. Signed-off-by: Solomon Hykes <[email protected]> * toolchains/go: no more codegen when checking go-tidy. We assume generated files are checked in Signed-off-by: Solomon Hykes <[email protected]> * toolchains/go: add Dagger runtime generator Expose generate-dagger-runtimes using the existing Go module enumeration and per-module runtime generation plumbing. Propagate runtime detection errors instead of dropping them. Signed-off-by: Solomon Hykes <[email protected]> * toolchains/go: remove unused ctx Signed-off-by: Solomon Hykes <[email protected]> * toolchains/go: check in generated runtime bindings Disabling lint and tidy from generating runtime bindings means those checks now assume every in-scope Go module has its generated Dagger runtime package checked in. The latest trace still failed for sdk/python/runtime and toolchains/engine-dev/notify because their generated internal/dagger packages were missing, so golangci-lint could not typecheck their dagger.gen.go imports. Regenerate the affected modules with dagger develop so sdk/python/runtime/internal/dagger/dagger.gen.go and toolchains/engine-dev/notify/internal/dagger/dagger.gen.go are present in the tree. Keep the regenerated go.mod/go.sum changes from that operation, including the gqlparser v2.5.33 bump, and regenerate toolchains/go/dagger.gen.go so the generated invoke dispatch matches TidyModule after the unused context argument was removed. Verified with dagger --progress=plain call go lint --include sdk/python/runtime/ --include toolchains/engine-dev/notify/ --include toolchains/go/. Signed-off-by: Solomon Hykes <[email protected]> * chore: regenerate Go runtime bindings after source map fix Regenerate checked-in go.gen.go files on top of #13039 to pick up the new GenerateDaggerRuntimes method and updated line references. Signed-off-by: Solomon Hykes <[email protected]> * chore: regenerate Go module dependencies Run dagger generate to update go.mod/go.sum across all Go modules after rebasing on latest main with source map fix (#13039). Signed-off-by: Solomon Hykes <[email protected]> --------- Signed-off-by: Solomon Hykes <[email protected]> (cherry picked from commit d010965) Signed-off-by: Tibor Vass <[email protected]>
tiborvass
pushed a commit
that referenced
this pull request
Apr 30, 2026
* chore: disable automatic gitignore generation for in-scope Go modules This checkpoints the first implementation step for issue 11467: the repo-scope Go modules that currently participate in dag-driven lint/tidy flows now opt out of automatic .gitignore regeneration via dagger.json. The change is intentionally mechanical and scoped to config only. It touches the 73 in-scope module roots defined by the top-level go toolchain customization, plus the root dagger.json, and leaves the .gitignore cleanup for the follow-up step. Also include the expanded plan note under scratch/ so the exact target set remains documented alongside the code change. Signed-off-by: Solomon Hykes <[email protected]> * chore: regenerate committed Go modules after disabling automatic gitignore generation Issue 11467 is about committing generated Dagger Go files so repo modules build and lint cleanly from a fresh checkout without relying on runtime regeneration. This commit records the regeneration pass after setting codegen.automaticGitignore=false on the in-scope module roots and removing the generated Go ignore entries from the source-root .gitignore files. The regeneration was performed with dagger develop, including recursive local-dependency walks where applicable, so the resulting tree now contains the committed generated bindings, updated module metadata, and the cleaned ignore files. Signed-off-by: Solomon Hykes <[email protected]> * toolchains/go: no more codegen when linting. We assume generated files are checked in Signed-off-by: Solomon Hykes <[email protected]> * chore: restore committed viztest go bindings and stop regenerating ignored Go outputs Issue 11467 needs the generated Go module outputs checked in, but several in-scope module .gitignore files were still hiding generated internal packages from the workspace view. That made golangci-lint fail to resolve imports like dagger/viztest/internal/dagger and python-sdk/internal/dagger even after the generated files were present in the tree. This change removes the stale generated-code ignore rules from the in-scope module roots, restores the dagql/idtui/viztest generated bindings, and records the small viztest go.mod/go.sum refresh produced by the regeneration pass. It does not touch the separate toolchains/go lint split or any broader codegen behavior. Signed-off-by: Solomon Hykes <[email protected]> * toolchains/go: no more codegen when checking go-tidy. We assume generated files are checked in Signed-off-by: Solomon Hykes <[email protected]> * toolchains/go: add Dagger runtime generator Expose generate-dagger-runtimes using the existing Go module enumeration and per-module runtime generation plumbing. Propagate runtime detection errors instead of dropping them. Signed-off-by: Solomon Hykes <[email protected]> * toolchains/go: remove unused ctx Signed-off-by: Solomon Hykes <[email protected]> * toolchains/go: check in generated runtime bindings Disabling lint and tidy from generating runtime bindings means those checks now assume every in-scope Go module has its generated Dagger runtime package checked in. The latest trace still failed for sdk/python/runtime and toolchains/engine-dev/notify because their generated internal/dagger packages were missing, so golangci-lint could not typecheck their dagger.gen.go imports. Regenerate the affected modules with dagger develop so sdk/python/runtime/internal/dagger/dagger.gen.go and toolchains/engine-dev/notify/internal/dagger/dagger.gen.go are present in the tree. Keep the regenerated go.mod/go.sum changes from that operation, including the gqlparser v2.5.33 bump, and regenerate toolchains/go/dagger.gen.go so the generated invoke dispatch matches TidyModule after the unused context argument was removed. Verified with dagger --progress=plain call go lint --include sdk/python/runtime/ --include toolchains/engine-dev/notify/ --include toolchains/go/. Signed-off-by: Solomon Hykes <[email protected]> * chore: regenerate Go runtime bindings after source map fix Regenerate checked-in go.gen.go files on top of #13039 to pick up the new GenerateDaggerRuntimes method and updated line references. Signed-off-by: Solomon Hykes <[email protected]> * chore: regenerate Go module dependencies Run dagger generate to update go.mod/go.sum across all Go modules after rebasing on latest main with source map fix (#13039). Signed-off-by: Solomon Hykes <[email protected]> --------- Signed-off-by: Solomon Hykes <[email protected]> (cherry picked from commit d010965) Signed-off-by: Tibor Vass <[email protected]>
tiborvass
pushed a commit
that referenced
this pull request
May 2, 2026
* chore: disable automatic gitignore generation for in-scope Go modules This checkpoints the first implementation step for issue 11467: the repo-scope Go modules that currently participate in dag-driven lint/tidy flows now opt out of automatic .gitignore regeneration via dagger.json. The change is intentionally mechanical and scoped to config only. It touches the 73 in-scope module roots defined by the top-level go toolchain customization, plus the root dagger.json, and leaves the .gitignore cleanup for the follow-up step. Also include the expanded plan note under scratch/ so the exact target set remains documented alongside the code change. Signed-off-by: Solomon Hykes <[email protected]> * chore: regenerate committed Go modules after disabling automatic gitignore generation Issue 11467 is about committing generated Dagger Go files so repo modules build and lint cleanly from a fresh checkout without relying on runtime regeneration. This commit records the regeneration pass after setting codegen.automaticGitignore=false on the in-scope module roots and removing the generated Go ignore entries from the source-root .gitignore files. The regeneration was performed with dagger develop, including recursive local-dependency walks where applicable, so the resulting tree now contains the committed generated bindings, updated module metadata, and the cleaned ignore files. Signed-off-by: Solomon Hykes <[email protected]> * toolchains/go: no more codegen when linting. We assume generated files are checked in Signed-off-by: Solomon Hykes <[email protected]> * chore: restore committed viztest go bindings and stop regenerating ignored Go outputs Issue 11467 needs the generated Go module outputs checked in, but several in-scope module .gitignore files were still hiding generated internal packages from the workspace view. That made golangci-lint fail to resolve imports like dagger/viztest/internal/dagger and python-sdk/internal/dagger even after the generated files were present in the tree. This change removes the stale generated-code ignore rules from the in-scope module roots, restores the dagql/idtui/viztest generated bindings, and records the small viztest go.mod/go.sum refresh produced by the regeneration pass. It does not touch the separate toolchains/go lint split or any broader codegen behavior. Signed-off-by: Solomon Hykes <[email protected]> * toolchains/go: no more codegen when checking go-tidy. We assume generated files are checked in Signed-off-by: Solomon Hykes <[email protected]> * toolchains/go: add Dagger runtime generator Expose generate-dagger-runtimes using the existing Go module enumeration and per-module runtime generation plumbing. Propagate runtime detection errors instead of dropping them. Signed-off-by: Solomon Hykes <[email protected]> * toolchains/go: remove unused ctx Signed-off-by: Solomon Hykes <[email protected]> * toolchains/go: check in generated runtime bindings Disabling lint and tidy from generating runtime bindings means those checks now assume every in-scope Go module has its generated Dagger runtime package checked in. The latest trace still failed for sdk/python/runtime and toolchains/engine-dev/notify because their generated internal/dagger packages were missing, so golangci-lint could not typecheck their dagger.gen.go imports. Regenerate the affected modules with dagger develop so sdk/python/runtime/internal/dagger/dagger.gen.go and toolchains/engine-dev/notify/internal/dagger/dagger.gen.go are present in the tree. Keep the regenerated go.mod/go.sum changes from that operation, including the gqlparser v2.5.33 bump, and regenerate toolchains/go/dagger.gen.go so the generated invoke dispatch matches TidyModule after the unused context argument was removed. Verified with dagger --progress=plain call go lint --include sdk/python/runtime/ --include toolchains/engine-dev/notify/ --include toolchains/go/. Signed-off-by: Solomon Hykes <[email protected]> * chore: regenerate Go runtime bindings after source map fix Regenerate checked-in go.gen.go files on top of #13039 to pick up the new GenerateDaggerRuntimes method and updated line references. Signed-off-by: Solomon Hykes <[email protected]> * chore: regenerate Go module dependencies Run dagger generate to update go.mod/go.sum across all Go modules after rebasing on latest main with source map fix (#13039). Signed-off-by: Solomon Hykes <[email protected]> --------- Signed-off-by: Solomon Hykes <[email protected]> (cherry picked from commit d010965) Signed-off-by: Tibor Vass <[email protected]>
tiborvass
pushed a commit
that referenced
this pull request
May 4, 2026
* chore: disable automatic gitignore generation for in-scope Go modules This checkpoints the first implementation step for issue 11467: the repo-scope Go modules that currently participate in dag-driven lint/tidy flows now opt out of automatic .gitignore regeneration via dagger.json. The change is intentionally mechanical and scoped to config only. It touches the 73 in-scope module roots defined by the top-level go toolchain customization, plus the root dagger.json, and leaves the .gitignore cleanup for the follow-up step. Also include the expanded plan note under scratch/ so the exact target set remains documented alongside the code change. Signed-off-by: Solomon Hykes <[email protected]> * chore: regenerate committed Go modules after disabling automatic gitignore generation Issue 11467 is about committing generated Dagger Go files so repo modules build and lint cleanly from a fresh checkout without relying on runtime regeneration. This commit records the regeneration pass after setting codegen.automaticGitignore=false on the in-scope module roots and removing the generated Go ignore entries from the source-root .gitignore files. The regeneration was performed with dagger develop, including recursive local-dependency walks where applicable, so the resulting tree now contains the committed generated bindings, updated module metadata, and the cleaned ignore files. Signed-off-by: Solomon Hykes <[email protected]> * toolchains/go: no more codegen when linting. We assume generated files are checked in Signed-off-by: Solomon Hykes <[email protected]> * chore: restore committed viztest go bindings and stop regenerating ignored Go outputs Issue 11467 needs the generated Go module outputs checked in, but several in-scope module .gitignore files were still hiding generated internal packages from the workspace view. That made golangci-lint fail to resolve imports like dagger/viztest/internal/dagger and python-sdk/internal/dagger even after the generated files were present in the tree. This change removes the stale generated-code ignore rules from the in-scope module roots, restores the dagql/idtui/viztest generated bindings, and records the small viztest go.mod/go.sum refresh produced by the regeneration pass. It does not touch the separate toolchains/go lint split or any broader codegen behavior. Signed-off-by: Solomon Hykes <[email protected]> * toolchains/go: no more codegen when checking go-tidy. We assume generated files are checked in Signed-off-by: Solomon Hykes <[email protected]> * toolchains/go: add Dagger runtime generator Expose generate-dagger-runtimes using the existing Go module enumeration and per-module runtime generation plumbing. Propagate runtime detection errors instead of dropping them. Signed-off-by: Solomon Hykes <[email protected]> * toolchains/go: remove unused ctx Signed-off-by: Solomon Hykes <[email protected]> * toolchains/go: check in generated runtime bindings Disabling lint and tidy from generating runtime bindings means those checks now assume every in-scope Go module has its generated Dagger runtime package checked in. The latest trace still failed for sdk/python/runtime and toolchains/engine-dev/notify because their generated internal/dagger packages were missing, so golangci-lint could not typecheck their dagger.gen.go imports. Regenerate the affected modules with dagger develop so sdk/python/runtime/internal/dagger/dagger.gen.go and toolchains/engine-dev/notify/internal/dagger/dagger.gen.go are present in the tree. Keep the regenerated go.mod/go.sum changes from that operation, including the gqlparser v2.5.33 bump, and regenerate toolchains/go/dagger.gen.go so the generated invoke dispatch matches TidyModule after the unused context argument was removed. Verified with dagger --progress=plain call go lint --include sdk/python/runtime/ --include toolchains/engine-dev/notify/ --include toolchains/go/. Signed-off-by: Solomon Hykes <[email protected]> * chore: regenerate Go runtime bindings after source map fix Regenerate checked-in go.gen.go files on top of #13039 to pick up the new GenerateDaggerRuntimes method and updated line references. Signed-off-by: Solomon Hykes <[email protected]> * chore: regenerate Go module dependencies Run dagger generate to update go.mod/go.sum across all Go modules after rebasing on latest main with source map fix (#13039). Signed-off-by: Solomon Hykes <[email protected]> --------- Signed-off-by: Solomon Hykes <[email protected]> (cherry picked from commit d010965) Signed-off-by: Tibor Vass <[email protected]>
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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Restore the pre-#11856 behavior where (*Module).namespaceSourceMap records at minimum the module name when the SDK does not attach a source map to a typedef/field/argument.
When commit aa719a1 migrated source-map handling to dagql results, the synthesizing fallback was lost: the new namespaceSourceMap returns the nil sourceMap unchanged, so types/fields contributed by SDKs that don't emit source maps (dang, Java, Python, PHP, Elixir) end up in the schema without any sourceMap directive.
That sourceMap.module directive is what cmd/codegen/introspection/filters.go uses to identify dependency types. With the directive missing, DependencyNames() no longer reports the dep, Exclude() no longer strips its types from the core schema, and Include() no longer produces a per-dep .gen.go. The generated code ends up with the dep's types duplicated between dagger.gen.go (newly inlined) and a stale .gen.go on disk, which the overlay writer leaves untouched because the new memfs no longer contains it.
Re-create a minimal SourceMap whose only filled field is the module name so the downstream filtering logic keeps working for any SDK that does not provide source-position metadata.