Skip to content

feat(go): target one engine release per SDK release - #85

Merged
eunomie merged 15 commits into
dagger:mainfrom
eunomie:sdk-target/go-target-version
Oct 28, 2026
Merged

eunomie merged 15 commits into
dagger:mainfrom
eunomie:sdk-target/go-target-version

Conversation

@eunomie

@eunomie eunomie commented Oct 26, 2026 •

Copy link
Copy Markdown
Member

A Go SDK release now targets one Dagger release. Unified entrypoint modules use that release by default; targetVersion can pin a release from the entrypoint floor through the SDK's target. A nonempty clientVersion setting fails with a rename message.

Generation pins dagger.io/dagger to the target and checks the selected version after go mod tidy. It reports an applicable replace as a development exception. Dependency clients use the target's core types; their schemas still come from the running engine.

The generated entrypoint sets DAGGER_CLIENT_VERSION for the module process. The engine does not honor it yet; the planned engine change will apply the declared version. Generated standalone clients pass a known target when they start their own connection.

Remote entrypoints are replaced by the generated entrypoint. Local custom entrypoints and legacy runtimes remain. Embedded bindings continue to follow the running engine.

Supersedes #84.

Validation: four Go unit suites and seven shared-engine checks passed on 105547ab5bd5a6ff8f974cb3cffb3c7b9583f0c2. The entrypoint-contract suite and focused remote-entrypoint compatibility and refusal checks passed on subsequent revisions through 7baf952d977cb6588d7933e6e89ae5a1d9305826. The cross-engine and SDK-upgrade matrices and full CLI smoke were not rerun at the final head.

The generated code of a module with unified clients follows the SDK
release and the targetVersion pin, never the running engine.

Signed-off-by: Yves Brissaud <[email protected]>
The engine ignores DAGGER_CLIENT_VERSION today; a later engine will serve
that view instead of the module's version. Standalone clients announce
it when they start a session.

Signed-off-by: Yves Brissaud <[email protected]>
A requirement that selects a later library than the target is refused
with that requirement named, so the target stays the only source of the
API the module uses. A replaced library is reported as a development
exception.

Signed-off-by: Yves Brissaud <[email protected]>
Dependency clients alias core types from the running engine's view; a
type the targeted library lacks failed as a compile error in generated
code, which named neither the dependency nor the target.

Signed-off-by: Yves Brissaud <[email protected]>
The generated Dang entrypoint is the only entrypoint the SDK keeps or
writes; a local custom entrypoint and a custom runtime stay the author's,
and so does a remote one under dangEntrypoint = false, the explicit opt-out.

Signed-off-by: Yves Brissaud <[email protected]>
@eunomie
eunomie force-pushed the sdk-target/go-target-version branch from 9dd0ac8 to 7baf952 Compare October 27, 2026 14:00
@eunomie eunomie changed the title feat(go): target an engine release with targetVersion feat(go): target one engine release per SDK release Oct 27, 2026
also add two bump functions

Signed-off-by: Yves Brissaud <[email protected]>
@eunomie
eunomie marked this pull request as ready for review October 27, 2026 17:14
@eunomie
eunomie merged commit 7eecc79 into dagger:main Oct 28, 2026
11 checks passed
@eunomie
eunomie deleted the sdk-target/go-target-version branch October 28, 2026 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant