Skip to content

Read the recorded targetVersion in a direct mod - #22

Draft
eunomie wants to merge 1 commit into
enum-naming-enginefrom
target-consistency
Draft

eunomie wants to merge 1 commit into
enum-naming-enginefrom
target-consistency

Conversation

@eunomie

@eunomie eunomie commented Nov 11, 2026

Copy link
Copy Markdown
Member

Stacked on #12. When no targetVersion is passed, mod reads the targetVersion that dagger.toml records for the module's scope (same lookup rules as the engine at v1.0.0-beta.27 and as python-sdk), with the same refusals as an explicit setting. Precedence: explicit setting, then recorded target, then the default. Path-equivalent scope keys match; ambiguous targetVersion records and keys that escape the workspace are refused. The engine's scopeSetting field is not used: it exists only in beta.26+ views, and this module's engineVersion is beta.17.

One difference from dagger generate: there the record wins over [modules.php-sdk.settings]; in mod a passed setting wins (documented in the README).

Checks, on the beta.27 engine and CLI: target-version-check passed (new assertions: recorded pin, later pin refused, explicit wins, other scope ignored, path-equivalent pin, conflicting keys, escaping key); entrypoint-config-check passed on the first revision (generateScope is unchanged). Not asserted: case-colliding names, two SDK entries for one module.

The engine passes scope settings only to generateScope, so a direct mod
generated for the default release. WorkspaceSDK.scopeSetting is beta.26+
view only, below php-sdk's beta.17 engineVersion, so mod reads dagger.toml.
Only targetVersion records are checked here; the engine validates the rest.

Signed-off-by: Yves Brissaud <yves@dagger.io>
@eunomie
eunomie changed the base branch from target-beta27 to enum-naming-engine November 11, 2026 14:31
@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