Repository navigation
feat(go): reach dependencies through the global client - #70
Merged
Merged
Conversation
Legacy author code calls dag.Wolfi() and uses dagger.WolfiContainerOpts; with unified clients those live in the generated dependency clients. Signed-off-by: Yves Brissaud <[email protected]>
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.
A legacy module migrated with
globalClientandunifiedClientslost its dependency calls:dag.App()anddagger.AppWordsOptsdid not exist in the module package, because the sharedcorehas no dependencies and each one is a standalone client ininternal/dagger/clients/<dep>.The module
Clientnow embeds each dependency client, connected lazily on the same session, sodag.App(...)keeps the dependency's exact signature.dagger.Xreferences to a dependency name gettype X = dep0.X(orconst), so option structs stay the same type. Dependency packages use privatedep<N>qualifiers; a name two dependencies export stays unaliased. Nothing changes withoutglobalClient.Tests:
TestGlobalClientIncludesDependencies(two dependencies, one namedcore, one shared name). On v1.0.0-beta.18,dag.App().Words(ctx, dagger.AppWordsOpts{Sep: "-"})runs unchanged.Not covered: manifest
[[dependencies]]are still refused; the dependency must be a scope client withunifiedClients.