#calling out the modules from the SDK
1 messages · Page 1 of 1 (latest)
can you be more precise about what you're trying to do? x-SDK calls should work independent of language, they all end up going through the GQL, so it's unclear to me what sorta updates you're looking for
SDK functions for loading/calling modules. Last I heard it wasn't supported, but Dagger was open to implementing it
Our top-level is not a module, we start with dagger run go run ./ci/main.go
Hey @fervent plover, happy new year!
Sadly, no, this is still not possible.
@cloud yarrow just FYI this is a relatively common request, heres an issue tracking this one: https://github.com/dagger/dagger/issues/5993
You can make the call itself, but you don't get generated client bindings for it. You need to make the raw http/graphql query yourself
For a simple integration (like a one-time function call to hand off to the module, and not too many complex arguments & return values to marshal & unmarshal, it could actually be all you need)
Here's an example on how to call a module from the SDK via GraphQL directly #1226443956213121105 message