Repository navigation
Conversation
eunomie
force-pushed
the
go-sdk-entrypoint-migration
branch
from
October 20, 2026 09:01
85f858e to
ed9a719
Compare
eunomie
force-pushed
the
go-sdk-entrypoint-migration
branch
from
October 21, 2026 14:06
6bf4022 to
1020f16
Compare
eunomie
marked this pull request as ready for review
October 21, 2026 14:41
eunomie
force-pushed
the
go-sdk-entrypoint-migration
branch
from
October 22, 2026 09:24
1020f16 to
4af3454
Compare
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]>
The entrypoint takes the module description from the main type's doc comment, not from the package doc comment. Signed-off-by: Yves Brissaud <[email protected]>
go-sdk refuses [[dependencies]] and [codegen] in a manifest it moves to an entrypoint; wolfi stays a client of the scope in dagger.toml. Signed-off-by: Yves Brissaud <[email protected]>
go-sdk needs go.mod in the module directory and refuses source = "dagger", so the code moves up from dagger/. The entrypoint has no module description, so the main type's doc comment carries it. Signed-off-by: Yves Brissaud <[email protected]>
The entrypoint takes the module description from the main type's doc comment, not from the package doc comment. Signed-off-by: Yves Brissaud <[email protected]>
Unified clients name the cli-dev client after its module, so the dagger-cli alias of the old manifest becomes CliDev. Core types now come from dagger.io/dagger/core, so staticcheck flags GitRef.Commit. Signed-off-by: Yves Brissaud <[email protected]>
dagger/go-sdk#71 drops [codegen] and the [[dependencies]] that scope clients provide when a module moves to the Dang entrypoint. Signed-off-by: Yves Brissaud <[email protected]>
Signed-off-by: Yves Brissaud <[email protected]>
Signed-off-by: Yves Brissaud <[email protected]>
go-sdk refuses [[dependencies]] and [codegen] in a manifest it moves to an entrypoint; alpine stays a client of the scope in dagger.toml. Signed-off-by: Yves Brissaud <[email protected]>
An entrypoint manifest cannot carry disableDefaultFunctionCaching; +cache="session" on each function keeps the per-session caching. Signed-off-by: Yves Brissaud <[email protected]>
Unified clients name the engine-dev client after its module, so the dagger-engine alias of the old manifest becomes EngineDev. Execs nest on the v1 API, so phpunit and the codegen dagger call drop the outer session to reach the dev engine, as with the v0.21.9 engineVersion. Signed-off-by: Yves Brissaud <[email protected]>
Unified clients name the engine-dev client after its module, so the dagger-engine alias of the old manifest becomes EngineDev. Execs nest on the v1 API, so cargo test drops the outer session to reach the dev engine, as with the v0.21.9 engineVersion. Signed-off-by: Yves Brissaud <[email protected]>
The v1 client exposes the ReleaseDryRun checks of cli-dev and rust-client-dev as Check objects, so the dry run reads each check's failure from Check.error. Called from an entrypoint, contextual defaults resolve against the callee's own module, so release passes the workspace root as php's and python's workspaceDir and its head as go's and php's sourceRepo. A passed directory skips the callee's +ignore, so release filters each one with a copy of the callee's pattern list. Execs nest on the v1 API, so the publish check's CLI drops the outer session to reach the dev engine. Signed-off-by: Yves Brissaud <[email protected]>
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]>
Core types now come from dagger.io/dagger/core, so staticcheck flags GitRef.Commit. Called from engine-dev or release, cli-dev's default source would resolve against its entrypoint sources, which lack cmd/dagger, so those callers pass their source. A passed directory skips the callee's +ignore, so they filter it with a copy of cli-dev's pattern list. Signed-off-by: Yves Brissaud <[email protected]>
go-sdk refuses [[dependencies]] and [codegen] in a manifest it moves to an entrypoint; the four dependencies stay clients of the scope. The v1 API of the unified client deprecates GitRef.ref in favour of name. release passes docs-dev's source, whose default would resolve against the entrypoint sources, filtered with a copy of docs-dev's +ignore list, which a passed directory skips. Signed-off-by: Yves Brissaud <[email protected]>
Signed-off-by: Yves Brissaud <[email protected]>
Signed-off-by: Yves Brissaud <[email protected]>
Signed-off-by: Yves Brissaud <[email protected]>
Signed-off-by: Yves Brissaud <[email protected]>
Signed-off-by: Yves Brissaud <[email protected]>
Signed-off-by: Yves Brissaud <[email protected]>
Signed-off-by: Yves Brissaud <[email protected]>
Signed-off-by: Yves Brissaud <[email protected]>
Signed-off-by: Yves Brissaud <[email protected]>
Signed-off-by: Yves Brissaud <[email protected]>
Signed-off-by: Yves Brissaud <[email protected]>
Signed-off-by: Yves Brissaud <[email protected]>
Signed-off-by: Yves Brissaud <[email protected]>
Signed-off-by: Yves Brissaud <[email protected]>
Signed-off-by: Yves Brissaud <[email protected]>
Signed-off-by: Yves Brissaud <[email protected]>
Cloud generates from a git workspace. A beta.18 run on a local checkout wrote these source links one directory short; dagger#14665, released in v1.0.0-beta.19, fixes that, so both modes now agree. Signed-off-by: Yves Brissaud <[email protected]>
dagger/go-sdk#75 continues the engine's trace in the dispatcher. Git workspaces resolve go-sdk main live instead of the lock pin, so Cloud already generates with it. Signed-off-by: Yves Brissaud <[email protected]>
dagger/go-sdk#78 matches same-repo clients regardless of the URL scheme, so a GitHub workspace now binds them by path like a local checkout. Signed-off-by: Yves Brissaud <[email protected]>
Point the go-sdk module at github.com/eunomie/go-sdk@fix-same-repo-clients-beta20 (dagger/go-sdk#79) and regenerate the same-repo clients with it, so that Cloud runs this PR with that change. With it, the go module's caches use main's namespace on a Git workspace. Drop this commit once dagger/go-sdk#79 is merged and the dagger.io/sdk/go@main pin is bumped. Signed-off-by: Yves Brissaud <[email protected]>
eunomie
force-pushed
the
go-sdk-entrypoint-migration
branch
from
October 22, 2026 14:45
ad297a6 to
9103430
Compare
This was referenced Oct 22, 2026
Member
Author
|
Superseded by #14840 (same changes, moved from a fork branch to a branch on this repository). |
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
31 commits move 14 Go Dagger modules to the go-sdk Dang entrypoint, in two phases:
dagger.lockpins go-sdkmain.dagger.io/dagger/core.apko and python-client-dev stay on the legacy runtime.
Behaviour changes
engineVersionmeans the v1 view: execs nest, so execs that start a Dagger client unsetDAGGER_SESSION_PORT/DAGGER_SESSION_TOKEN.source/workspaceDir/sourceRepoand filter directories with the callee's+ignorelist.Checkobjects; a legacy callee's check gets a Void client, so python-client-dev stays legacy.How verified
release:publish-with-mock-endpointspasses on the final tree.python-client/python-310/unitmatchesmain.dagger check -l,generate -l --require-load, clean git-mode generation,go build/go vetat every commit.dagger check(not completed), the release dry-run closures, golangci-lint at the tip, SDK suites and test-split shards.