Repository navigation
feat(go): deliver build files through entrypoint sources - #67
Merged
Merged
Conversation
Generation globbed and uploaded the whole workspace. Restore the 7f77348 scan of the go.mod replace targets, with the .. fix of 3666a71. Signed-off-by: Yves Brissaud <[email protected]>
Every generated entrypoint returns the module and the files its build reads from sources; types and call take no workspace, so the engine reuses function results until one of those files changes. Signed-off-by: Yves Brissaud <[email protected]>
Signed-off-by: Yves Brissaud <[email protected]>
A module directory without a manifest got the starter template written over its main.go, so generation scanned the starter instead. Signed-off-by: Yves Brissaud <[email protected]>
Signed-off-by: Yves Brissaud <[email protected]>
Signed-off-by: Yves Brissaud <[email protected]>
With dangEntrypoint unset, an existing module keeps its current runner and only fresh modules get the Dang entrypoint. A module that fails to load is skipped with no message. Signed-off-by: Yves Brissaud <[email protected]>
currentModule.contextDirectory already holds the module source at sourceSubpath, and the engine derives currentModule.source from it, so placing the source back was an identity. Signed-off-by: Yves Brissaud <[email protected]>
The sources guard generates its fixture on that engine: beta.17 refuses the caller's client, which loads include-app. 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.
Each Go entrypoint declares
sources(workspace): the module directory plus outside files its build reads (go.mod localreplace).typesandcallare uniform and take no workspace, so results are cached across sessions until a returned file changes. Replaces #64's workspace compilation.Do not merge before dagger/dagger#14693 is in a release: every Go entrypoint module generated by this SDK needs it (v1.0.0-beta.18 if released after that merge).
dagger generatewrites fixed patterns from replaces, imports, embeds; regenerate after changes.sourcesruns at each load with a working client and the trust of module code.missing argument "workspace".Tests: unit, golden, dev-engine e2e.
Not covered: engine-e2e
sources-checkuntil the release pin.Limits: cached call 0.3-0.4 s; 0.44-0.58 s on 16.6k files (one root read per load).
Scan: no module-graph selection; rare version replaces add or miss files.
Walkthrough: https://gistpreview.github.io/?4ff3d8d0379cdcbf96e7041aed5b7610