Skip to content

fix(go): ease migrating old modules to the entrypoint - #69

Merged
eunomie merged 2 commits into
dagger:mainfrom
eunomie:go-sdk-migration-fixes
Oct 16, 2026
Merged

eunomie merged 2 commits into
dagger:mainfrom
eunomie:go-sdk-migration-fixes

Conversation

@eunomie

@eunomie eunomie commented Oct 16, 2026

Copy link
Copy Markdown
Member

Two blockers hit when moving dagger/dagger's go module to the entrypoint form:

  • include was refused, so the author had to delete it first. That left a module neither runtime could build, and a workspace entrypoint loading it broke every dagger call, generate included. Migration now drops include and dagger.json itself; the changeset shows it. The replace directives of go.mod select the files, so a file only read at run time is no longer available.
  • Unified bindings aliased every bootstrap *Opts, With*Func and enum constant to core, a dependency's too, so generation failed with undefined: core.AppWordsOpts. Only real core names are aliased now.

Tests: unit tests for the allowlist; e2e manifest-include-check (both manifest forms) and the refusal checks.

Not covered: dag.Wolfi() and dagger.WolfiContainerOpts still need the dependency's client package (wolfi.New(), wolfi.WolfiContainerOpts). Manifest [[dependencies]] are still refused.

Unified module bindings aliased every bootstrap *Opts type, With*Func type
and enum constant to dagger.io/dagger/core, including those of
dependencies, which core lacks.

Signed-off-by: Yves Brissaud <[email protected]>
Refusing it left a module that neither runtime builds while the author
removes it; the local replace directives of go.mod select the files.

Signed-off-by: Yves Brissaud <[email protected]>
@grouville
grouville self-requested a review October 16, 2026 07:01
@eunomie
eunomie merged commit b586285 into dagger:main Oct 16, 2026
9 checks passed
@eunomie
eunomie deleted the go-sdk-migration-fixes branch October 16, 2026 08:30
eunomie added a commit to eunomie/dagger that referenced this pull request Oct 20, 2026
No go-sdk tag has the beta.18 sources contract (dagger/go-sdk#67), the
include migration (dagger/go-sdk#69) or dependencies through the global
client (dagger/go-sdk#70).

Signed-off-by: Yves Brissaud <[email protected]>
eunomie added a commit to eunomie/dagger that referenced this pull request Oct 21, 2026
No go-sdk tag has the beta.18 sources contract (dagger/go-sdk#67), the
include migration (dagger/go-sdk#69) or dependencies through the global
client (dagger/go-sdk#70).

Signed-off-by: Yves Brissaud <[email protected]>
eunomie added a commit to eunomie/dagger that referenced this pull request Oct 22, 2026
No go-sdk tag has the beta.18 sources contract (dagger/go-sdk#67), the
include migration (dagger/go-sdk#69) or dependencies through the global
client (dagger/go-sdk#70).

Signed-off-by: Yves Brissaud <[email protected]>
eunomie added a commit to eunomie/dagger that referenced this pull request Oct 22, 2026
No go-sdk tag has the beta.18 sources contract (dagger/go-sdk#67), the
include migration (dagger/go-sdk#69) or dependencies through the global
client (dagger/go-sdk#70).

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.

2 participants