Skip to content

Keep Workspace arguments required for SDKs #13790

Open

Description

@vito

from Discord:

re: Workspace inheritance - feels we're in a kind of awkward middle ground now:

  • The Workspace argument is optional, because before it would be automatically supplied by the engine. That meant callers never had to supply it, and never had to know the arg name.
  • Now that it's not inherited, in practice you have to pass in a Workspace when calling from a module. But it's optional, which feels like a lie, but ALSO forces you to do the clunky dagger.FooOpts{Ws: ws} syntax in Go, which is both verbose AND forces you to specify the awkward Ws name.

There's a tension though because making it optional is what made the CLI UX nicer without custom CLI logic - like you can directly call a Workspace-taking function and let it automatically take your current Workspace

Activity

  1. added this to the v1.0.0 milestone on Jul 30, 2026
  2. removed this from the v1.0.0 milestone on Aug 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions