Repository navigation
fix(go): ease migrating old modules to the entrypoint - #69
Merged
Merged
Conversation
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
self-requested a review
October 16, 2026 07:01
grouville
approved these changes
Oct 16, 2026
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two blockers hit when moving dagger/dagger's
gomodule to the entrypoint form:includewas refused, so the author had to delete it first. That left a module neither runtime could build, and a workspace entrypoint loading it broke everydaggercall,generateincluded. Migration now dropsincludeanddagger.jsonitself; the changeset shows it. Thereplacedirectives ofgo.modselect the files, so a file only read at run time is no longer available.*Opts,With*Funcand enum constant tocore, a dependency's too, so generation failed withundefined: 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()anddagger.WolfiContainerOptsstill need the dependency's client package (wolfi.New(),wolfi.WolfiContainerOpts). Manifest[[dependencies]]are still refused.