Skip to content

Seed the template into a module without composer.json - #28

Draft
eunomie wants to merge 1 commit into
entrypoint-guard-engine-versionfrom
entrypoint-seed-composer
Draft

eunomie wants to merge 1 commit into
entrypoint-guard-engine-versionfrom
entrypoint-seed-composer

Conversation

@eunomie

@eunomie eunomie commented Nov 11, 2026

Copy link
Copy Markdown
Member

Stacked on the previous pull request. A module without composer.json stayed on the PHP runtime, although that runtime seeds the starter template itself. Generation now seeds the template under the module's own files (existing files win), the 'no composer.json' blocker is gone, and renderedTemplate moved from PhpSdk into Mod because only Mod knows the module name on a direct mod(). Behaviour change in module init: a scope that already has a composer.json keeps it and gets no starter files (now asserted). The rooting fixture of generate-existing-module-check moves to the entrypoint.

Checks, on the beta.27 engine and CLI: entrypoint-migration-check, generate-existing-module-check and entrypoint-ownership-check passed (the existing-module check was served from cache after an earlier run). Not proved: calling a seeded module (generated-entrypoint-call-check not run).

The engine's PHP runtime seeds the template into a module without
composer.json, so the blocker only kept such modules on the runtime.
Generation now seeds it, and new modules take the same path.

Signed-off-by: Yves Brissaud <yves@dagger.io>
@eunomie
eunomie force-pushed the entrypoint-seed-composer branch from 683c96d to b12a31e Compare 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