Shared contract checks for official SDK helper modules.
Start a new Dang SDK helper module:
dagger call sdk-sdk init --name my-sdk--name is the Dagger module name. The generated Dang root type is derived
from it, for example my-sdk becomes MySdk.
Run it from an SDK helper module workspace:
cd ./my/sdk/repo
dagger -m github.com/dagger/sdk-sdk checkThe checks receive the current Workspace, find that workspace's dagger.json,
serve the SDK helper module from the workspace, inspect the public GraphQL schema
users see from the CLI, then exercise a small set of user-facing behaviors
without applying returned changesets.
The first coverage is intentionally small:
init(ws, name, path, template, ignoreGenerated): Changeset!mod(ws, path, findUp): Mod!Mod.pathMod.dependencies.add(source, name): Changeset!Mod.engine.requiredMod.engine.require(version): Changeset!
The Go SDK currently exposes Mod.deps; the contract accepts that alias while
the shared API is being introduced.
Changeset paths are treated as module-relative. For example, init is expected
to report .dagger/modules/<name>/dagger.json, and dependency updates are
expected to report dagger.json.