Repository navigation
fix(go): spell dependency type aliases as module types - #72
Merged
Merged
Conversation
A private field typed with the global client's alias of a dependency type was qualified with the client package, which the generated code does not import. The module's API cannot use such types; generation now says so. Signed-off-by: Yves Brissaud <[email protected]>
eunomie
added a commit
to eunomie/dagger
that referenced
this pull request
Oct 20, 2026
dagger/go-sdk#72, dagger#73 and dagger#74 fix dependency type aliases, same-repo clients in git workspaces and otel-go's genproto requirements. 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#72, dagger#73 and dagger#74 fix dependency type aliases, same-repo clients in git workspaces and otel-go's genproto requirements. 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#72, dagger#73 and dagger#74 fix dependency type aliases, same-repo clients in git workspaces and otel-go's genproto requirements. 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#72, dagger#73 and dagger#74 fix dependency type aliases, same-repo clients in git workspaces and otel-go's genproto requirements. 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.
What
A private field typed with the global client's alias of a dependency type,
such as
Go *dagger.Go // +private, faileddagger generate: the generatedcode named the type through the dependency client package, which it does not
import ("expected declaration, found '%'", or
undefined: <dep>).Generation now keeps the alias spelling (
dagger.Go) for object, enum andinterface types. A dependency type in the module's API now gets a clear
error: a module with a Dang entrypoint has no manifest dependencies, so the
engine cannot load such an API.
How verified
failed before, and at this commit it generates, compiles and the functions
return the dependency's values.
the
PetClientalias.Not covered
A dependency type in the module's API stays unsupported, now with a clear error.
Walkthrough: https://gistpreview.github.io/?659b2d022bc1f5439730b69ecc75ca9e