Skip to content

Ask the engine for enum member names - #23

Draft
eunomie wants to merge 1 commit into
target-beta27from
enum-naming-engine
Draft

eunomie wants to merge 1 commit into
target-beta27from
enum-naming-engine

Conversation

@eunomie

@eunomie eunomie commented Nov 11, 2026

Copy link
Copy Markdown
Member

Stacked on #12, fixes the gap #12 documents. For a target of v1.0.0-beta.26 or later, the enum collision check asks the engine for member names (Query.naming(version).module(name).enumMemberNames) instead of the copied pre-beta.26 rules. The generate exec gets DAGGER_CLIENT_VERSION and privileged nesting to ask it. Targets below beta.26, and engines without the naming API, keep the earlier rules. The README and the two docblocks no longer describe a gap.

Checks, on the beta.27 engine and CLI: sdk-unit-check passed with a real run (177 tests, 275 assertions); entrypoint-migration-check passed on the first revision with a new case (Base64/BASE64 refused with the engine's names; the later revision changed only an assertion message).

Not proved: the fallback on an engine below beta.26; that the engine itself drops the duplicate.

The engine owns enum member names from v1.0.0-beta.26. The generate exec
needs DAGGER_CLIENT_VERSION and privileged nesting to ask it.

Signed-off-by: Yves Brissaud <yves@dagger.io>
@eunomie
eunomie added this pull request to stack #32 November 11, 2026 14:32
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