Skip to content

fix: preserve namespaced module type names - #13364

Closed
dagger-codex[bot] wants to merge 1 commit into
mainfrom
codex/dang-structural-interface-schema
Closed

dagger-codex[bot] wants to merge 1 commit into
mainfrom
codex/dang-structural-interface-schema

Conversation

@dagger-codex

@dagger-codex dagger-codex Bot commented Jun 8, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Stop double-normalizing already-namespaced module interface names during schema installation.
  • Preserve exact module object/interface/enum names when rebuilding TypeDefs from live GraphQL schema names.
  • Export and use core.NamespaceObject from the Dang runtime conversion instead of guessing local GraphQL type names, while keeping the local schema synthesis needed by Dang evaluation.
  • Add the moduleA/moduleB/moduleC structural interface regression and assert the served schema exposes ModuleAOverlay/ModuleBFileOverlay, not the corrupted lowercase-boundary variants.

Tests

  • go test ./core ./core/sdk
  • DAGGER_LEAVE_OLD_ENGINE=1 dagger call engine-dev test --pkg=./core/integration --run=^TestDang/TestInterfaces/consume_structural_interface_value_across_dependencies$ --test-verbose=true
  • DAGGER_LEAVE_OLD_ENGINE=1 dagger call engine-dev test --pkg=./core/integration --run=^TestDang/TestInterfaces$ --test-verbose=true

Module type names are already normalized when they are namespaced. Do not send interface installation or typedef reconstruction through another ToCamel pass, because adjacent capitals can collapse names such as ModuleAOverlay into ModuleAoverlay.

Use the shared module namespacing helper from the Dang runtime conversion and keep the local schema synthesis on the deterministic GraphQL type name.

Signed-off-by: Solomon Hykes <[email protected]>
@dagger-codex
dagger-codex Bot force-pushed the codex/dang-structural-interface-schema branch from ecea2ca to 92f0132 Compare June 8, 2026 17:25
@dagger-codex dagger-codex Bot changed the title fix: resolve Dang local interface values fix: preserve namespaced module type names Jun 8, 2026
@vito vito closed this in #13377 Jun 10, 2026
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