Skip to content

fix(go): drop codegen and client dependencies on migration - #71

Merged
eunomie merged 1 commit into
dagger:mainfrom
eunomie:migrate-drop-codegen-dependencies
Oct 16, 2026
Merged

eunomie merged 1 commit into
dagger:mainfrom
eunomie:migrate-drop-codegen-dependencies

Conversation

@eunomie

@eunomie eunomie commented Oct 16, 2026

Copy link
Copy Markdown
Member

Migrating a module like dagger/dagger's go to the entrypoint form failed with dagger-module.toml has settings a Dang entrypoint cannot carry (codegen, dependencies), so the author had to delete them by hand first.

  • [codegen] has one key, automaticGitignore, read only by the engine's runtime codegen. The entrypoint never reads it, so migration drops it.
  • [[dependencies]] are written by the legacy generator from the scope's clients. Migration drops a dependency a scope client provides (matched by name, or by source for nameless entries and bare dagger.json strings). Any other one is refused by name: add it to the scope's clients.
  • Entries without name or source are refused, and so is a dagger.json mixing strings and objects.

Tests: e2e manifest-dependencies-check (covered dependency migrates; uncovered, pin-only, [""] and mixed lists refused) plus the include, refusal and family checks. With #70, the go module generates cleanly.

Not covered: a bare source matched by a client; the e2e fixture cannot build one.

Refusing them blocked moving a Go runtime module to the entrypoint, which
reads neither; a dependency that no scope client provides is still refused.

Signed-off-by: Yves Brissaud <[email protected]>
@eunomie
eunomie merged commit c484aeb into dagger:main Oct 16, 2026
9 checks passed
@eunomie
eunomie deleted the migrate-drop-codegen-dependencies branch October 16, 2026 12:54
eunomie added a commit to eunomie/dagger that referenced this pull request Oct 20, 2026
dagger/go-sdk#71 drops [codegen] and the [[dependencies]] that scope
clients provide when a module moves to the Dang entrypoint.

Signed-off-by: Yves Brissaud <[email protected]>
eunomie added a commit to eunomie/dagger that referenced this pull request Oct 21, 2026
dagger/go-sdk#71 drops [codegen] and the [[dependencies]] that scope
clients provide when a module moves to the Dang entrypoint.

Signed-off-by: Yves Brissaud <[email protected]>
eunomie added a commit to eunomie/dagger that referenced this pull request Oct 22, 2026
dagger/go-sdk#71 drops [codegen] and the [[dependencies]] that scope
clients provide when a module moves to the Dang entrypoint.

Signed-off-by: Yves Brissaud <[email protected]>
eunomie added a commit to eunomie/dagger that referenced this pull request Oct 22, 2026
dagger/go-sdk#71 drops [codegen] and the [[dependencies]] that scope
clients provide when a module moves to the Dang entrypoint.

Signed-off-by: Yves Brissaud <[email protected]>
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