Skip to content

chore(modules): port workspace toolchains to v2 entrypoints - #14664

Closed
grouville wants to merge 8 commits into
mainfrom
port-workspace-modules-v2
Closed

grouville wants to merge 8 commits into
mainfrom
port-workspace-modules-v2

Conversation

@grouville

@grouville grouville commented Oct 14, 2026 •

Copy link
Copy Markdown
Member

This moves six Go modules to v2: go, cli-dev, engine-dev, python-client-dev, php-client-dev and release.

They already used workspaces, but their legacy include lists also supplied files needed to compile the modules. The merged Go SDK now discovers those compiler inputs automatically, including Go imports, local replace targets and go:embed files. This lets us remove the legacy runtime and include entries.

For go, cli-dev and engine-dev, every exported constructor and function now takes ws. With a fresh local workspace, Dagger runs the call again, so the SDK reads the current compiler inputs. Compilation can still reuse its cache when the selected file contents are unchanged. Module authors still choose the files their pipelines read through workspace filters.

The main changes to review are:

  • The six module manifests, generated entrypoints and Go SDK scope settings in dagger.toml.
  • The required ws arguments and callers that forward them, including the Helm test client.
  • Workspace filters replacing pipeline includes, plus Python and release callers adapting to v2 return types.

Most of the diff is regenerated Go clients or removed legacy bindings. Start with the authored main.go, main.dang, manifests and scope settings.

All six modules use dagger.io/dagger v1.0.0-beta.17. The Go SDK is pinned to 02aea84, the follow-up fix in go-sdk#65. That SDK PR needs to merge first. The engine resource rollback stays separate in #14661.

The first CI run exposed too much compiler discovery work: each module call listed every checkout filename through the API. The Java release check had 614,508 spans, versus 4,057 on main. The SDK follow-up passes discovered import/embed patterns directly to workspace directory filters. A local engine module call drops from 130,168 spans to 1,725. This fixes the extra work; CI still needs to confirm that the engine disconnects stop.

Nested PHP and release CLI commands now connect to their installed test engine with their own credentials. PHP code generation passes locally, and both modules compile.

Validation: the six ports compile and the earlier focused lint checks pass. Generation with the fixed SDK leaves no changes on a second run. Direct and sibling calls observe an external embedded file changing without regeneration on unmodified beta.17. Full PR CI still needs to pass. Git-backed generation also has a separate issue with checkout commit references in local client bindings, which is still being fixed.

@grouville grouville closed this Oct 14, 2026
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