Skip to content

example: Deploy React app to Netlify - #129

Merged
aluzzardi merged 3 commits into
mainfrom
react-netlify
Feb 19, 2021
Merged

aluzzardi merged 3 commits into
mainfrom
react-netlify

Conversation

@aluzzardi

Copy link
Copy Markdown
Contributor

No description provided.

Signed-off-by: Andrea Luzzardi <[email protected]>
@aluzzardi aluzzardi changed the title React netlify example: Deploy React app to Netlify Feb 19, 2021
@aluzzardi aluzzardi changed the title example: Deploy React app to Netlify [WIP] example: Deploy React app to Netlify Feb 19, 2021
@aluzzardi aluzzardi changed the title [WIP] example: Deploy React app to Netlify example: Deploy React app to Netlify Feb 19, 2021
@aluzzardi
aluzzardi merged commit e4245e4 into main Feb 19, 2021
@aluzzardi
aluzzardi deleted the react-netlify branch February 19, 2021 20:11
shykes added a commit that referenced this pull request Jun 12, 2026
…state

The section's checkboxes had drifted — nearly everything implemented
shipped under a [ ] marker. Replace with explicit status legend:

  ✅ shipped on this branch
  🟡 partially shipped (different shape than design)
  ⬜ designed, not yet implemented

Categorized by surface area:
- Shipped — top-level / module / api / cloud / workspace / config /
  schema / flag rename / removals / hidden aliases
- 🟡 Partial — current --sdk-flag init shapes vs. designed positional
  dispatch (module init, api client init). Includes the note that
  --option on client init is dead plumbing today.
- ⬜ Not yet implemented — handoff items with task references:
  - dagger sdk top-level group (tasks #120, #122-#124)
  - init reshape to positional + dynamic SDK flags (tasks #125-#128)
  - initModule/initClient capability semantics + targetRuntime wiring
    (task #129)
  - dagger exec → dagger api exec (task #130)
  - cloneModuleAsSDK empty-marker preservation (task #121)
  - Default-SDK inference, SDK codegen regen, --option removal
- Known unfixed items reduced to just the legitimate one (workspace
  concept needs a one-liner definition).

Status line updated from "Proposed" to reflect actual landing state.
shykes added a commit that referenced this pull request Jun 12, 2026
A first-class group for SDK management, alongside `api`, `module`, `cloud`,
`workspace` in the toolbox row of `dagger --help`. Workshopped against the
alternatives `dagger install <ref> --as-sdk` and folding everything under
`dagger module`; `sdk` won on four points: room to grow as a namespace
(install / uninstall / list / search / module-options / client-options),
built-in disambiguation (`dagger sdk install go` is unambiguous where
`dagger install go` would force a `-sdk` suffix or sdks.json hijacking
of the install verb), shorter than `--as-sdk` to type, and surfaces SDKs
as a first-class concept in `--help`.

Semantic split with the `module` group: SDK is the tool, module is the
thing the SDK creates. `dagger sdk install` adds the SDK and marks it;
`dagger module init <sdk> <name>` uses an installed SDK to create a
module (positional dispatch — the typed init shape lands with task #127).

Subcommands:

- `install <name-or-ref>` — resolves through the embedded sdks.json
  registry (`go` → github.com/dagger/go-sdk), installs the module, and
  writes the empty `[modules.<name>.as-sdk]` marker. Workspace install
  name is the alias you typed (`go`), not the basename of the canonical
  ref (`go-sdk`) — short, and what muscle memory expects. Direct refs
  work too: `dagger sdk install github.com/foo/sdk` lands as
  `[modules.sdk]` by basename. Generic `dagger install <ref>` does NOT
  mark anything as an SDK; the marker is opt-in via this verb.

- `uninstall <name>` — refuse-if-authored: errors when the SDK has
  entries under `[[modules.<name>.as-sdk.modules]]` or
  `[[modules.<name>.as-sdk.clients]]`. The check is CLI-side against
  the on-disk config — no session bootstrap to read TOML, and it has
  to happen before we dispatch the uninstall mutation. `--force`
  overrides; files on disk are left untouched, only the workspace
  entries go away.

- `list` — reads `dagger.toml`, prints installs where `AsSDK != nil`
  with NAME / SOURCE / M / C columns (M = authored modules, C =
  generated clients). Cheap capability affordance until per-SDK
  introspection lands with task #129.

- `search [query]` — lists embedded `sdks.json` entries. Substring
  match on name / alias / repo. No query = print all.

- `module-options <sdk>` / `client-options <sdk>` — stubbed with a
  clear "not yet wired (pending SDK contract, task #129)" message
  rather than fabricating a flag list. They do validate that the
  named install exists *and* carries the as-sdk marker, so the user
  gets the useful "run `dagger sdk install <sdk>` first" hint when
  the install is missing.

Engine: `Workspace.install` grows an `asSdk: Boolean = false` arg.
When true and the install is fresh, the entry is created with
`AsSDK: &workspace.ModuleAsSDK{}` (the empty marker). When the
install is idempotent (same `name`/`source` already present), the
marker is stamped onto the existing entry if missing — so a plain
`dagger install go-sdk` followed by `dagger sdk install go-sdk`
upgrades it in place rather than erroring.

Workspace flag policy on install/uninstall: `local-only`, matching
the generic install / uninstall verbs. Remote refs can't sneak in
through `--workspace` and mutate someone else's config.

CLI side calls `Workspace.install` with `asSdk: true` via raw GraphQL
(`dag.Do`) until the Go SDK regenerates against the new schema —
same pattern as `Workspace.moduleInit` already uses on this branch.

Tests updated: `sdk` appears in the root-help Contains set and in
the leaf-vs-parent ordering check.

Future doc + PR description update in a follow-up commit.
shykes added a commit that referenced this pull request Jun 12, 2026
Move the `dagger sdk install / uninstall / list / search` entries from
the ⬜ "Not yet implemented" section to a new "Shipped — `dagger sdk`"
section. `module-options` / `client-options` flagged 🟡 — wired as
commands and validating that the install carries the as-sdk marker,
but the typed-flag introspection itself is gated on the SDK contract
(task #129).

End-to-end smoke test (via engine-dev playground) confirms the marker
round-trips: `dagger sdk install go` produces:

  [modules.go]
  source = "github.com/dagger/go-sdk"
  [modules.go.as-sdk]

The empty `[modules.go.as-sdk]` header is what `dagger module init`
/ `dagger api client init` will dispatch on.
eunomie pushed a commit to eunomie/dagger that referenced this pull request Jun 16, 2026
…state

The section's checkboxes had drifted — nearly everything implemented
shipped under a [ ] marker. Replace with explicit status legend:

  ✅ shipped on this branch
  🟡 partially shipped (different shape than design)
  ⬜ designed, not yet implemented

Categorized by surface area:
- Shipped — top-level / module / api / cloud / workspace / config /
  schema / flag rename / removals / hidden aliases
- 🟡 Partial — current --sdk-flag init shapes vs. designed positional
  dispatch (module init, api client init). Includes the note that
  --option on client init is dead plumbing today.
- ⬜ Not yet implemented — handoff items with task references:
  - dagger sdk top-level group (tasks dagger#120, dagger#122-dagger#124)
  - init reshape to positional + dynamic SDK flags (tasks dagger#125-dagger#128)
  - initModule/initClient capability semantics + targetRuntime wiring
    (task dagger#129)
  - dagger exec → dagger api exec (task dagger#130)
  - cloneModuleAsSDK empty-marker preservation (task dagger#121)
  - Default-SDK inference, SDK codegen regen, --option removal
- Known unfixed items reduced to just the legitimate one (workspace
  concept needs a one-liner definition).

Status line updated from "Proposed" to reflect actual landing state.

Signed-off-by: Solomon Hykes <[email protected]>
eunomie pushed a commit to eunomie/dagger that referenced this pull request Jun 16, 2026
A first-class group for SDK management, alongside `api`, `module`, `cloud`,
`workspace` in the toolbox row of `dagger --help`. Workshopped against the
alternatives `dagger install <ref> --as-sdk` and folding everything under
`dagger module`; `sdk` won on four points: room to grow as a namespace
(install / uninstall / list / search / module-options / client-options),
built-in disambiguation (`dagger sdk install go` is unambiguous where
`dagger install go` would force a `-sdk` suffix or sdks.json hijacking
of the install verb), shorter than `--as-sdk` to type, and surfaces SDKs
as a first-class concept in `--help`.

Semantic split with the `module` group: SDK is the tool, module is the
thing the SDK creates. `dagger sdk install` adds the SDK and marks it;
`dagger module init <sdk> <name>` uses an installed SDK to create a
module (positional dispatch — the typed init shape lands with task dagger#127).

Subcommands:

- `install <name-or-ref>` — resolves through the embedded sdks.json
  registry (`go` → github.com/dagger/go-sdk), installs the module, and
  writes the empty `[modules.<name>.as-sdk]` marker. Workspace install
  name is the alias you typed (`go`), not the basename of the canonical
  ref (`go-sdk`) — short, and what muscle memory expects. Direct refs
  work too: `dagger sdk install github.com/foo/sdk` lands as
  `[modules.sdk]` by basename. Generic `dagger install <ref>` does NOT
  mark anything as an SDK; the marker is opt-in via this verb.

- `uninstall <name>` — refuse-if-authored: errors when the SDK has
  entries under `[[modules.<name>.as-sdk.modules]]` or
  `[[modules.<name>.as-sdk.clients]]`. The check is CLI-side against
  the on-disk config — no session bootstrap to read TOML, and it has
  to happen before we dispatch the uninstall mutation. `--force`
  overrides; files on disk are left untouched, only the workspace
  entries go away.

- `list` — reads `dagger.toml`, prints installs where `AsSDK != nil`
  with NAME / SOURCE / M / C columns (M = authored modules, C =
  generated clients). Cheap capability affordance until per-SDK
  introspection lands with task dagger#129.

- `search [query]` — lists embedded `sdks.json` entries. Substring
  match on name / alias / repo. No query = print all.

- `module-options <sdk>` / `client-options <sdk>` — stubbed with a
  clear "not yet wired (pending SDK contract, task dagger#129)" message
  rather than fabricating a flag list. They do validate that the
  named install exists *and* carries the as-sdk marker, so the user
  gets the useful "run `dagger sdk install <sdk>` first" hint when
  the install is missing.

Engine: `Workspace.install` grows an `asSdk: Boolean = false` arg.
When true and the install is fresh, the entry is created with
`AsSDK: &workspace.ModuleAsSDK{}` (the empty marker). When the
install is idempotent (same `name`/`source` already present), the
marker is stamped onto the existing entry if missing — so a plain
`dagger install go-sdk` followed by `dagger sdk install go-sdk`
upgrades it in place rather than erroring.

Workspace flag policy on install/uninstall: `local-only`, matching
the generic install / uninstall verbs. Remote refs can't sneak in
through `--workspace` and mutate someone else's config.

CLI side calls `Workspace.install` with `asSdk: true` via raw GraphQL
(`dag.Do`) until the Go SDK regenerates against the new schema —
same pattern as `Workspace.moduleInit` already uses on this branch.

Tests updated: `sdk` appears in the root-help Contains set and in
the leaf-vs-parent ordering check.

Future doc + PR description update in a follow-up commit.

Signed-off-by: Solomon Hykes <[email protected]>
eunomie pushed a commit to eunomie/dagger that referenced this pull request Jun 16, 2026
Move the `dagger sdk install / uninstall / list / search` entries from
the ⬜ "Not yet implemented" section to a new "Shipped — `dagger sdk`"
section. `module-options` / `client-options` flagged 🟡 — wired as
commands and validating that the install carries the as-sdk marker,
but the typed-flag introspection itself is gated on the SDK contract
(task dagger#129).

End-to-end smoke test (via engine-dev playground) confirms the marker
round-trips: `dagger sdk install go` produces:

  [modules.go]
  source = "github.com/dagger/go-sdk"
  [modules.go.as-sdk]

The empty `[modules.go.as-sdk]` header is what `dagger module init`
/ `dagger api client init` will dispatch on.

Signed-off-by: Solomon Hykes <[email protected]>
eunomie pushed a commit to eunomie/dagger that referenced this pull request Jun 16, 2026
…state

The section's checkboxes had drifted — nearly everything implemented
shipped under a [ ] marker. Replace with explicit status legend:

  ✅ shipped on this branch
  🟡 partially shipped (different shape than design)
  ⬜ designed, not yet implemented

Categorized by surface area:
- Shipped — top-level / module / api / cloud / workspace / config /
  schema / flag rename / removals / hidden aliases
- 🟡 Partial — current --sdk-flag init shapes vs. designed positional
  dispatch (module init, api client init). Includes the note that
  --option on client init is dead plumbing today.
- ⬜ Not yet implemented — handoff items with task references:
  - dagger sdk top-level group (tasks dagger#120, dagger#122-dagger#124)
  - init reshape to positional + dynamic SDK flags (tasks dagger#125-dagger#128)
  - initModule/initClient capability semantics + targetRuntime wiring
    (task dagger#129)
  - dagger exec → dagger api exec (task dagger#130)
  - cloneModuleAsSDK empty-marker preservation (task dagger#121)
  - Default-SDK inference, SDK codegen regen, --option removal
- Known unfixed items reduced to just the legitimate one (workspace
  concept needs a one-liner definition).

Status line updated from "Proposed" to reflect actual landing state.

Signed-off-by: Solomon Hykes <[email protected]>
eunomie pushed a commit to eunomie/dagger that referenced this pull request Jun 16, 2026
A first-class group for SDK management, alongside `api`, `module`, `cloud`,
`workspace` in the toolbox row of `dagger --help`. Workshopped against the
alternatives `dagger install <ref> --as-sdk` and folding everything under
`dagger module`; `sdk` won on four points: room to grow as a namespace
(install / uninstall / list / search / module-options / client-options),
built-in disambiguation (`dagger sdk install go` is unambiguous where
`dagger install go` would force a `-sdk` suffix or sdks.json hijacking
of the install verb), shorter than `--as-sdk` to type, and surfaces SDKs
as a first-class concept in `--help`.

Semantic split with the `module` group: SDK is the tool, module is the
thing the SDK creates. `dagger sdk install` adds the SDK and marks it;
`dagger module init <sdk> <name>` uses an installed SDK to create a
module (positional dispatch — the typed init shape lands with task dagger#127).

Subcommands:

- `install <name-or-ref>` — resolves through the embedded sdks.json
  registry (`go` → github.com/dagger/go-sdk), installs the module, and
  writes the empty `[modules.<name>.as-sdk]` marker. Workspace install
  name is the alias you typed (`go`), not the basename of the canonical
  ref (`go-sdk`) — short, and what muscle memory expects. Direct refs
  work too: `dagger sdk install github.com/foo/sdk` lands as
  `[modules.sdk]` by basename. Generic `dagger install <ref>` does NOT
  mark anything as an SDK; the marker is opt-in via this verb.

- `uninstall <name>` — refuse-if-authored: errors when the SDK has
  entries under `[[modules.<name>.as-sdk.modules]]` or
  `[[modules.<name>.as-sdk.clients]]`. The check is CLI-side against
  the on-disk config — no session bootstrap to read TOML, and it has
  to happen before we dispatch the uninstall mutation. `--force`
  overrides; files on disk are left untouched, only the workspace
  entries go away.

- `list` — reads `dagger.toml`, prints installs where `AsSDK != nil`
  with NAME / SOURCE / M / C columns (M = authored modules, C =
  generated clients). Cheap capability affordance until per-SDK
  introspection lands with task dagger#129.

- `search [query]` — lists embedded `sdks.json` entries. Substring
  match on name / alias / repo. No query = print all.

- `module-options <sdk>` / `client-options <sdk>` — stubbed with a
  clear "not yet wired (pending SDK contract, task dagger#129)" message
  rather than fabricating a flag list. They do validate that the
  named install exists *and* carries the as-sdk marker, so the user
  gets the useful "run `dagger sdk install <sdk>` first" hint when
  the install is missing.

Engine: `Workspace.install` grows an `asSdk: Boolean = false` arg.
When true and the install is fresh, the entry is created with
`AsSDK: &workspace.ModuleAsSDK{}` (the empty marker). When the
install is idempotent (same `name`/`source` already present), the
marker is stamped onto the existing entry if missing — so a plain
`dagger install go-sdk` followed by `dagger sdk install go-sdk`
upgrades it in place rather than erroring.

Workspace flag policy on install/uninstall: `local-only`, matching
the generic install / uninstall verbs. Remote refs can't sneak in
through `--workspace` and mutate someone else's config.

CLI side calls `Workspace.install` with `asSdk: true` via raw GraphQL
(`dag.Do`) until the Go SDK regenerates against the new schema —
same pattern as `Workspace.moduleInit` already uses on this branch.

Tests updated: `sdk` appears in the root-help Contains set and in
the leaf-vs-parent ordering check.

Future doc + PR description update in a follow-up commit.

Signed-off-by: Solomon Hykes <[email protected]>
eunomie pushed a commit to eunomie/dagger that referenced this pull request Jun 16, 2026
Move the `dagger sdk install / uninstall / list / search` entries from
the ⬜ "Not yet implemented" section to a new "Shipped — `dagger sdk`"
section. `module-options` / `client-options` flagged 🟡 — wired as
commands and validating that the install carries the as-sdk marker,
but the typed-flag introspection itself is gated on the SDK contract
(task dagger#129).

End-to-end smoke test (via engine-dev playground) confirms the marker
round-trips: `dagger sdk install go` produces:

  [modules.go]
  source = "github.com/dagger/go-sdk"
  [modules.go.as-sdk]

The empty `[modules.go.as-sdk]` header is what `dagger module init`
/ `dagger api client init` will dispatch on.

Signed-off-by: Solomon Hykes <[email protected]>
eunomie added a commit that referenced this pull request Jun 17, 2026
Two suites can't be mechanically updated for the new CLI yet; skip them
with specific TODO keys so the remaining work is isolated.

- client_generator_test.go and the client-init sub-tests of
  module_source_maps_test.go drive `dagger client install|list|
  uninstall|update`. The replacement is `dagger sdk install` plus
  `dagger api client init <sdk> <path> <module>`, which needs the
  per-SDK initClient implementations still tracked as task #129 in
  future/cli-1.0.md. TODO key: TODO(api-client-init #129).

- workspace_migration_test.go drove `dagger migrate`, now folded into
  `dagger setup`. setup's migrate step does not reproduce migrate's
  stdout warnings/summaries (they move to .dagger/migration-report.md),
  so these assertions cannot pass via `setup --auto-apply` as-is.
  TODO key: TODO(migrate-via-setup). Migration behavior itself stays
  covered by workspace_compat_test.go.

Signed-off-by: Yves Brissaud <[email protected]>
eunomie pushed a commit that referenced this pull request Jun 17, 2026
…state

The section's checkboxes had drifted — nearly everything implemented
shipped under a [ ] marker. Replace with explicit status legend:

  ✅ shipped on this branch
  🟡 partially shipped (different shape than design)
  ⬜ designed, not yet implemented

Categorized by surface area:
- Shipped — top-level / module / api / cloud / workspace / config /
  schema / flag rename / removals / hidden aliases
- 🟡 Partial — current --sdk-flag init shapes vs. designed positional
  dispatch (module init, api client init). Includes the note that
  --option on client init is dead plumbing today.
- ⬜ Not yet implemented — handoff items with task references:
  - dagger sdk top-level group (tasks #120, #122-#124)
  - init reshape to positional + dynamic SDK flags (tasks #125-#128)
  - initModule/initClient capability semantics + targetRuntime wiring
    (task #129)
  - dagger exec → dagger api exec (task #130)
  - cloneModuleAsSDK empty-marker preservation (task #121)
  - Default-SDK inference, SDK codegen regen, --option removal
- Known unfixed items reduced to just the legitimate one (workspace
  concept needs a one-liner definition).

Status line updated from "Proposed" to reflect actual landing state.

Signed-off-by: Solomon Hykes <[email protected]>
eunomie pushed a commit that referenced this pull request Jun 17, 2026
A first-class group for SDK management, alongside `api`, `module`, `cloud`,
`workspace` in the toolbox row of `dagger --help`. Workshopped against the
alternatives `dagger install <ref> --as-sdk` and folding everything under
`dagger module`; `sdk` won on four points: room to grow as a namespace
(install / uninstall / list / search / module-options / client-options),
built-in disambiguation (`dagger sdk install go` is unambiguous where
`dagger install go` would force a `-sdk` suffix or sdks.json hijacking
of the install verb), shorter than `--as-sdk` to type, and surfaces SDKs
as a first-class concept in `--help`.

Semantic split with the `module` group: SDK is the tool, module is the
thing the SDK creates. `dagger sdk install` adds the SDK and marks it;
`dagger module init <sdk> <name>` uses an installed SDK to create a
module (positional dispatch — the typed init shape lands with task #127).

Subcommands:

- `install <name-or-ref>` — resolves through the embedded sdks.json
  registry (`go` → github.com/dagger/go-sdk), installs the module, and
  writes the empty `[modules.<name>.as-sdk]` marker. Workspace install
  name is the alias you typed (`go`), not the basename of the canonical
  ref (`go-sdk`) — short, and what muscle memory expects. Direct refs
  work too: `dagger sdk install github.com/foo/sdk` lands as
  `[modules.sdk]` by basename. Generic `dagger install <ref>` does NOT
  mark anything as an SDK; the marker is opt-in via this verb.

- `uninstall <name>` — refuse-if-authored: errors when the SDK has
  entries under `[[modules.<name>.as-sdk.modules]]` or
  `[[modules.<name>.as-sdk.clients]]`. The check is CLI-side against
  the on-disk config — no session bootstrap to read TOML, and it has
  to happen before we dispatch the uninstall mutation. `--force`
  overrides; files on disk are left untouched, only the workspace
  entries go away.

- `list` — reads `dagger.toml`, prints installs where `AsSDK != nil`
  with NAME / SOURCE / M / C columns (M = authored modules, C =
  generated clients). Cheap capability affordance until per-SDK
  introspection lands with task #129.

- `search [query]` — lists embedded `sdks.json` entries. Substring
  match on name / alias / repo. No query = print all.

- `module-options <sdk>` / `client-options <sdk>` — stubbed with a
  clear "not yet wired (pending SDK contract, task #129)" message
  rather than fabricating a flag list. They do validate that the
  named install exists *and* carries the as-sdk marker, so the user
  gets the useful "run `dagger sdk install <sdk>` first" hint when
  the install is missing.

Engine: `Workspace.install` grows an `asSdk: Boolean = false` arg.
When true and the install is fresh, the entry is created with
`AsSDK: &workspace.ModuleAsSDK{}` (the empty marker). When the
install is idempotent (same `name`/`source` already present), the
marker is stamped onto the existing entry if missing — so a plain
`dagger install go-sdk` followed by `dagger sdk install go-sdk`
upgrades it in place rather than erroring.

Workspace flag policy on install/uninstall: `local-only`, matching
the generic install / uninstall verbs. Remote refs can't sneak in
through `--workspace` and mutate someone else's config.

CLI side calls `Workspace.install` with `asSdk: true` via raw GraphQL
(`dag.Do`) until the Go SDK regenerates against the new schema —
same pattern as `Workspace.moduleInit` already uses on this branch.

Tests updated: `sdk` appears in the root-help Contains set and in
the leaf-vs-parent ordering check.

Future doc + PR description update in a follow-up commit.

Signed-off-by: Solomon Hykes <[email protected]>
eunomie pushed a commit that referenced this pull request Jun 17, 2026
Move the `dagger sdk install / uninstall / list / search` entries from
the ⬜ "Not yet implemented" section to a new "Shipped — `dagger sdk`"
section. `module-options` / `client-options` flagged 🟡 — wired as
commands and validating that the install carries the as-sdk marker,
but the typed-flag introspection itself is gated on the SDK contract
(task #129).

End-to-end smoke test (via engine-dev playground) confirms the marker
round-trips: `dagger sdk install go` produces:

  [modules.go]
  source = "github.com/dagger/go-sdk"
  [modules.go.as-sdk]

The empty `[modules.go.as-sdk]` header is what `dagger module init`
/ `dagger api client init` will dispatch on.

Signed-off-by: Solomon Hykes <[email protected]>
eunomie added a commit that referenced this pull request Jun 17, 2026
Two suites can't be mechanically updated for the new CLI yet; skip them
with specific TODO keys so the remaining work is isolated.

- client_generator_test.go and the client-init sub-tests of
  module_source_maps_test.go drive `dagger client install|list|
  uninstall|update`. The replacement is `dagger sdk install` plus
  `dagger api client init <sdk> <path> <module>`, which needs the
  per-SDK initClient implementations still tracked as task #129 in
  future/cli-1.0.md. TODO key: TODO(api-client-init #129).

- workspace_migration_test.go drove `dagger migrate`, now folded into
  `dagger setup`. setup's migrate step does not reproduce migrate's
  stdout warnings/summaries (they move to .dagger/migration-report.md),
  so these assertions cannot pass via `setup --auto-apply` as-is.
  TODO key: TODO(migrate-via-setup). Migration behavior itself stays
  covered by workspace_compat_test.go.

Signed-off-by: Yves Brissaud <[email protected]>
eunomie pushed a commit that referenced this pull request Jun 18, 2026
…state

The section's checkboxes had drifted — nearly everything implemented
shipped under a [ ] marker. Replace with explicit status legend:

  ✅ shipped on this branch
  🟡 partially shipped (different shape than design)
  ⬜ designed, not yet implemented

Categorized by surface area:
- Shipped — top-level / module / api / cloud / workspace / config /
  schema / flag rename / removals / hidden aliases
- 🟡 Partial — current --sdk-flag init shapes vs. designed positional
  dispatch (module init, api client init). Includes the note that
  --option on client init is dead plumbing today.
- ⬜ Not yet implemented — handoff items with task references:
  - dagger sdk top-level group (tasks #120, #122-#124)
  - init reshape to positional + dynamic SDK flags (tasks #125-#128)
  - initModule/initClient capability semantics + targetRuntime wiring
    (task #129)
  - dagger exec → dagger api exec (task #130)
  - cloneModuleAsSDK empty-marker preservation (task #121)
  - Default-SDK inference, SDK codegen regen, --option removal
- Known unfixed items reduced to just the legitimate one (workspace
  concept needs a one-liner definition).

Status line updated from "Proposed" to reflect actual landing state.

Signed-off-by: Solomon Hykes <[email protected]>
eunomie pushed a commit that referenced this pull request Jun 18, 2026
A first-class group for SDK management, alongside `api`, `module`, `cloud`,
`workspace` in the toolbox row of `dagger --help`. Workshopped against the
alternatives `dagger install <ref> --as-sdk` and folding everything under
`dagger module`; `sdk` won on four points: room to grow as a namespace
(install / uninstall / list / search / module-options / client-options),
built-in disambiguation (`dagger sdk install go` is unambiguous where
`dagger install go` would force a `-sdk` suffix or sdks.json hijacking
of the install verb), shorter than `--as-sdk` to type, and surfaces SDKs
as a first-class concept in `--help`.

Semantic split with the `module` group: SDK is the tool, module is the
thing the SDK creates. `dagger sdk install` adds the SDK and marks it;
`dagger module init <sdk> <name>` uses an installed SDK to create a
module (positional dispatch — the typed init shape lands with task #127).

Subcommands:

- `install <name-or-ref>` — resolves through the embedded sdks.json
  registry (`go` → github.com/dagger/go-sdk), installs the module, and
  writes the empty `[modules.<name>.as-sdk]` marker. Workspace install
  name is the alias you typed (`go`), not the basename of the canonical
  ref (`go-sdk`) — short, and what muscle memory expects. Direct refs
  work too: `dagger sdk install github.com/foo/sdk` lands as
  `[modules.sdk]` by basename. Generic `dagger install <ref>` does NOT
  mark anything as an SDK; the marker is opt-in via this verb.

- `uninstall <name>` — refuse-if-authored: errors when the SDK has
  entries under `[[modules.<name>.as-sdk.modules]]` or
  `[[modules.<name>.as-sdk.clients]]`. The check is CLI-side against
  the on-disk config — no session bootstrap to read TOML, and it has
  to happen before we dispatch the uninstall mutation. `--force`
  overrides; files on disk are left untouched, only the workspace
  entries go away.

- `list` — reads `dagger.toml`, prints installs where `AsSDK != nil`
  with NAME / SOURCE / M / C columns (M = authored modules, C =
  generated clients). Cheap capability affordance until per-SDK
  introspection lands with task #129.

- `search [query]` — lists embedded `sdks.json` entries. Substring
  match on name / alias / repo. No query = print all.

- `module-options <sdk>` / `client-options <sdk>` — stubbed with a
  clear "not yet wired (pending SDK contract, task #129)" message
  rather than fabricating a flag list. They do validate that the
  named install exists *and* carries the as-sdk marker, so the user
  gets the useful "run `dagger sdk install <sdk>` first" hint when
  the install is missing.

Engine: `Workspace.install` grows an `asSdk: Boolean = false` arg.
When true and the install is fresh, the entry is created with
`AsSDK: &workspace.ModuleAsSDK{}` (the empty marker). When the
install is idempotent (same `name`/`source` already present), the
marker is stamped onto the existing entry if missing — so a plain
`dagger install go-sdk` followed by `dagger sdk install go-sdk`
upgrades it in place rather than erroring.

Workspace flag policy on install/uninstall: `local-only`, matching
the generic install / uninstall verbs. Remote refs can't sneak in
through `--workspace` and mutate someone else's config.

CLI side calls `Workspace.install` with `asSdk: true` via raw GraphQL
(`dag.Do`) until the Go SDK regenerates against the new schema —
same pattern as `Workspace.moduleInit` already uses on this branch.

Tests updated: `sdk` appears in the root-help Contains set and in
the leaf-vs-parent ordering check.

Future doc + PR description update in a follow-up commit.

Signed-off-by: Solomon Hykes <[email protected]>
eunomie pushed a commit that referenced this pull request Jun 18, 2026
Move the `dagger sdk install / uninstall / list / search` entries from
the ⬜ "Not yet implemented" section to a new "Shipped — `dagger sdk`"
section. `module-options` / `client-options` flagged 🟡 — wired as
commands and validating that the install carries the as-sdk marker,
but the typed-flag introspection itself is gated on the SDK contract
(task #129).

End-to-end smoke test (via engine-dev playground) confirms the marker
round-trips: `dagger sdk install go` produces:

  [modules.go]
  source = "github.com/dagger/go-sdk"
  [modules.go.as-sdk]

The empty `[modules.go.as-sdk]` header is what `dagger module init`
/ `dagger api client init` will dispatch on.

Signed-off-by: Solomon Hykes <[email protected]>
eunomie added a commit that referenced this pull request Jun 18, 2026
Two suites can't be mechanically updated for the new CLI yet; skip them
with specific TODO keys so the remaining work is isolated.

- client_generator_test.go and the client-init sub-tests of
  module_source_maps_test.go drive `dagger client install|list|
  uninstall|update`. The replacement is `dagger sdk install` plus
  `dagger api client init <sdk> <path> <module>`, which needs the
  per-SDK initClient implementations still tracked as task #129 in
  future/cli-1.0.md. TODO key: TODO(api-client-init #129).

- workspace_migration_test.go drove `dagger migrate`, now folded into
  `dagger setup`. setup's migrate step does not reproduce migrate's
  stdout warnings/summaries (they move to .dagger/migration-report.md),
  so these assertions cannot pass via `setup --auto-apply` as-is.
  TODO key: TODO(migrate-via-setup). Migration behavior itself stays
  covered by workspace_compat_test.go.

Signed-off-by: Yves Brissaud <[email protected]>
tiborvass pushed a commit that referenced this pull request Jun 19, 2026
…state

The section's checkboxes had drifted — nearly everything implemented
shipped under a [ ] marker. Replace with explicit status legend:

  ✅ shipped on this branch
  🟡 partially shipped (different shape than design)
  ⬜ designed, not yet implemented

Categorized by surface area:
- Shipped — top-level / module / api / cloud / workspace / config /
  schema / flag rename / removals / hidden aliases
- 🟡 Partial — current --sdk-flag init shapes vs. designed positional
  dispatch (module init, api client init). Includes the note that
  --option on client init is dead plumbing today.
- ⬜ Not yet implemented — handoff items with task references:
  - dagger sdk top-level group (tasks #120, #122-#124)
  - init reshape to positional + dynamic SDK flags (tasks #125-#128)
  - initModule/initClient capability semantics + targetRuntime wiring
    (task #129)
  - dagger exec → dagger api exec (task #130)
  - cloneModuleAsSDK empty-marker preservation (task #121)
  - Default-SDK inference, SDK codegen regen, --option removal
- Known unfixed items reduced to just the legitimate one (workspace
  concept needs a one-liner definition).

Status line updated from "Proposed" to reflect actual landing state.

Signed-off-by: Solomon Hykes <[email protected]>
tiborvass pushed a commit that referenced this pull request Jun 19, 2026
A first-class group for SDK management, alongside `api`, `module`, `cloud`,
`workspace` in the toolbox row of `dagger --help`. Workshopped against the
alternatives `dagger install <ref> --as-sdk` and folding everything under
`dagger module`; `sdk` won on four points: room to grow as a namespace
(install / uninstall / list / search / module-options / client-options),
built-in disambiguation (`dagger sdk install go` is unambiguous where
`dagger install go` would force a `-sdk` suffix or sdks.json hijacking
of the install verb), shorter than `--as-sdk` to type, and surfaces SDKs
as a first-class concept in `--help`.

Semantic split with the `module` group: SDK is the tool, module is the
thing the SDK creates. `dagger sdk install` adds the SDK and marks it;
`dagger module init <sdk> <name>` uses an installed SDK to create a
module (positional dispatch — the typed init shape lands with task #127).

Subcommands:

- `install <name-or-ref>` — resolves through the embedded sdks.json
  registry (`go` → github.com/dagger/go-sdk), installs the module, and
  writes the empty `[modules.<name>.as-sdk]` marker. Workspace install
  name is the alias you typed (`go`), not the basename of the canonical
  ref (`go-sdk`) — short, and what muscle memory expects. Direct refs
  work too: `dagger sdk install github.com/foo/sdk` lands as
  `[modules.sdk]` by basename. Generic `dagger install <ref>` does NOT
  mark anything as an SDK; the marker is opt-in via this verb.

- `uninstall <name>` — refuse-if-authored: errors when the SDK has
  entries under `[[modules.<name>.as-sdk.modules]]` or
  `[[modules.<name>.as-sdk.clients]]`. The check is CLI-side against
  the on-disk config — no session bootstrap to read TOML, and it has
  to happen before we dispatch the uninstall mutation. `--force`
  overrides; files on disk are left untouched, only the workspace
  entries go away.

- `list` — reads `dagger.toml`, prints installs where `AsSDK != nil`
  with NAME / SOURCE / M / C columns (M = authored modules, C =
  generated clients). Cheap capability affordance until per-SDK
  introspection lands with task #129.

- `search [query]` — lists embedded `sdks.json` entries. Substring
  match on name / alias / repo. No query = print all.

- `module-options <sdk>` / `client-options <sdk>` — stubbed with a
  clear "not yet wired (pending SDK contract, task #129)" message
  rather than fabricating a flag list. They do validate that the
  named install exists *and* carries the as-sdk marker, so the user
  gets the useful "run `dagger sdk install <sdk>` first" hint when
  the install is missing.

Engine: `Workspace.install` grows an `asSdk: Boolean = false` arg.
When true and the install is fresh, the entry is created with
`AsSDK: &workspace.ModuleAsSDK{}` (the empty marker). When the
install is idempotent (same `name`/`source` already present), the
marker is stamped onto the existing entry if missing — so a plain
`dagger install go-sdk` followed by `dagger sdk install go-sdk`
upgrades it in place rather than erroring.

Workspace flag policy on install/uninstall: `local-only`, matching
the generic install / uninstall verbs. Remote refs can't sneak in
through `--workspace` and mutate someone else's config.

CLI side calls `Workspace.install` with `asSdk: true` via raw GraphQL
(`dag.Do`) until the Go SDK regenerates against the new schema —
same pattern as `Workspace.moduleInit` already uses on this branch.

Tests updated: `sdk` appears in the root-help Contains set and in
the leaf-vs-parent ordering check.

Future doc + PR description update in a follow-up commit.

Signed-off-by: Solomon Hykes <[email protected]>
tiborvass pushed a commit that referenced this pull request Jun 19, 2026
Move the `dagger sdk install / uninstall / list / search` entries from
the ⬜ "Not yet implemented" section to a new "Shipped — `dagger sdk`"
section. `module-options` / `client-options` flagged 🟡 — wired as
commands and validating that the install carries the as-sdk marker,
but the typed-flag introspection itself is gated on the SDK contract
(task #129).

End-to-end smoke test (via engine-dev playground) confirms the marker
round-trips: `dagger sdk install go` produces:

  [modules.go]
  source = "github.com/dagger/go-sdk"
  [modules.go.as-sdk]

The empty `[modules.go.as-sdk]` header is what `dagger module init`
/ `dagger api client init` will dispatch on.

Signed-off-by: Solomon Hykes <[email protected]>
tiborvass pushed a commit that referenced this pull request Jun 19, 2026
Two suites can't be mechanically updated for the new CLI yet; skip them
with specific TODO keys so the remaining work is isolated.

- client_generator_test.go and the client-init sub-tests of
  module_source_maps_test.go drive `dagger client install|list|
  uninstall|update`. The replacement is `dagger sdk install` plus
  `dagger api client init <sdk> <path> <module>`, which needs the
  per-SDK initClient implementations still tracked as task #129 in
  future/cli-1.0.md. TODO key: TODO(api-client-init #129).

- workspace_migration_test.go drove `dagger migrate`, now folded into
  `dagger setup`. setup's migrate step does not reproduce migrate's
  stdout warnings/summaries (they move to .dagger/migration-report.md),
  so these assertions cannot pass via `setup --auto-apply` as-is.
  TODO key: TODO(migrate-via-setup). Migration behavior itself stays
  covered by workspace_compat_test.go.

Signed-off-by: Yves Brissaud <[email protected]>
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