Skip to content

Modules: dag.Host() name is extremely confusing #6312

Closed

Description

@sipsma

When module code uses dag.Host(), the "host" it refers to is the module container's "host", not the CLI caller's host.

While this is technically consistent, it's very non-obvious at first glance and a constant source of confusion.

I think at a minimum we need to change Host to something with a more obvious name. TBD if this change also impacts non-module SDKs or if it's somehow scoped just to the codegen for modules.

There's certainly larger scope changes to the API that could also be worth discussing, but changing to a more clear name seems like the bare-minimum baseline thing to do here.


As a side-note, support for Module code being able to read files/env vars/etc. from the CLI caller's host is a separate topic, discussed in this other issue #6112

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