Skip to content

cleanup: wrap errors using go 1.13 built-ins - #122

Merged
aluzzardi merged 1 commit into
mainfrom
go-1.13-errors
Feb 17, 2021
Merged

aluzzardi merged 1 commit into
mainfrom
go-1.13-errors

Conversation

@aluzzardi

Copy link
Copy Markdown
Contributor

No description provided.

@aluzzardi
aluzzardi requested a review from shykes February 17, 2021 18:31
@aluzzardi
aluzzardi merged commit cabf331 into main Feb 17, 2021
@aluzzardi
aluzzardi deleted the go-1.13-errors branch February 17, 2021 18:35
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
cloneModuleAsSDK used to collapse an empty (non-nil, zero-Modules,
zero-Clients) AsSDK to nil. That was correct under the old "AsSDK
presence = has managed targets" semantic.

For `dagger sdk install`, presence of AsSDK is the "this install IS an
SDK" marker — must be persistable BEFORE any module or client is
authored under it.

Changes:
- cloneModuleAsSDK no longer drops empty AsSDK. nil stays nil; non-nil
  stays non-nil.
- SerializeConfig's writeModuleAsSDK emits an empty [modules.X.as-sdk]
  section header when AsSDK is empty, so the marker survives a fresh
  serialize round trip.
- UpdateConfigBytes's rewriteModuleAsSDKSections includes any non-nil
  AsSDK (was: only when Modules or Clients had entries), so the marker
  also survives format-preserving edits.

Prereq for the `dagger sdk install` engine path (task #122).
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
cloneModuleAsSDK used to collapse an empty (non-nil, zero-Modules,
zero-Clients) AsSDK to nil. That was correct under the old "AsSDK
presence = has managed targets" semantic.

For `dagger sdk install`, presence of AsSDK is the "this install IS an
SDK" marker — must be persistable BEFORE any module or client is
authored under it.

Changes:
- cloneModuleAsSDK no longer drops empty AsSDK. nil stays nil; non-nil
  stays non-nil.
- SerializeConfig's writeModuleAsSDK emits an empty [modules.X.as-sdk]
  section header when AsSDK is empty, so the marker survives a fresh
  serialize round trip.
- UpdateConfigBytes's rewriteModuleAsSDKSections includes any non-nil
  AsSDK (was: only when Modules or Clients had entries), so the marker
  also survives format-preserving edits.

Prereq for the `dagger sdk install` engine path (task dagger#122).

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
cloneModuleAsSDK used to collapse an empty (non-nil, zero-Modules,
zero-Clients) AsSDK to nil. That was correct under the old "AsSDK
presence = has managed targets" semantic.

For `dagger sdk install`, presence of AsSDK is the "this install IS an
SDK" marker — must be persistable BEFORE any module or client is
authored under it.

Changes:
- cloneModuleAsSDK no longer drops empty AsSDK. nil stays nil; non-nil
  stays non-nil.
- SerializeConfig's writeModuleAsSDK emits an empty [modules.X.as-sdk]
  section header when AsSDK is empty, so the marker survives a fresh
  serialize round trip.
- UpdateConfigBytes's rewriteModuleAsSDKSections includes any non-nil
  AsSDK (was: only when Modules or Clients had entries), so the marker
  also survives format-preserving edits.

Prereq for the `dagger sdk install` engine path (task dagger#122).

Signed-off-by: Solomon Hykes <[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
cloneModuleAsSDK used to collapse an empty (non-nil, zero-Modules,
zero-Clients) AsSDK to nil. That was correct under the old "AsSDK
presence = has managed targets" semantic.

For `dagger sdk install`, presence of AsSDK is the "this install IS an
SDK" marker — must be persistable BEFORE any module or client is
authored under it.

Changes:
- cloneModuleAsSDK no longer drops empty AsSDK. nil stays nil; non-nil
  stays non-nil.
- SerializeConfig's writeModuleAsSDK emits an empty [modules.X.as-sdk]
  section header when AsSDK is empty, so the marker survives a fresh
  serialize round trip.
- UpdateConfigBytes's rewriteModuleAsSDKSections includes any non-nil
  AsSDK (was: only when Modules or Clients had entries), so the marker
  also survives format-preserving edits.

Prereq for the `dagger sdk install` engine path (task #122).

Signed-off-by: Solomon Hykes <[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
cloneModuleAsSDK used to collapse an empty (non-nil, zero-Modules,
zero-Clients) AsSDK to nil. That was correct under the old "AsSDK
presence = has managed targets" semantic.

For `dagger sdk install`, presence of AsSDK is the "this install IS an
SDK" marker — must be persistable BEFORE any module or client is
authored under it.

Changes:
- cloneModuleAsSDK no longer drops empty AsSDK. nil stays nil; non-nil
  stays non-nil.
- SerializeConfig's writeModuleAsSDK emits an empty [modules.X.as-sdk]
  section header when AsSDK is empty, so the marker survives a fresh
  serialize round trip.
- UpdateConfigBytes's rewriteModuleAsSDKSections includes any non-nil
  AsSDK (was: only when Modules or Clients had entries), so the marker
  also survives format-preserving edits.

Prereq for the `dagger sdk install` engine path (task #122).

Signed-off-by: Solomon Hykes <[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
cloneModuleAsSDK used to collapse an empty (non-nil, zero-Modules,
zero-Clients) AsSDK to nil. That was correct under the old "AsSDK
presence = has managed targets" semantic.

For `dagger sdk install`, presence of AsSDK is the "this install IS an
SDK" marker — must be persistable BEFORE any module or client is
authored under it.

Changes:
- cloneModuleAsSDK no longer drops empty AsSDK. nil stays nil; non-nil
  stays non-nil.
- SerializeConfig's writeModuleAsSDK emits an empty [modules.X.as-sdk]
  section header when AsSDK is empty, so the marker survives a fresh
  serialize round trip.
- UpdateConfigBytes's rewriteModuleAsSDKSections includes any non-nil
  AsSDK (was: only when Modules or Clients had entries), so the marker
  also survives format-preserving edits.

Prereq for the `dagger sdk install` engine path (task #122).

Signed-off-by: Solomon Hykes <[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