Repository navigation
cleanup: wrap errors using go 1.13 built-ins - #122
Merged
Merged
Conversation
Signed-off-by: Andrea Luzzardi <[email protected]>
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.