#Hello, I’m playing again with Dagger
1 messages · Page 1 of 1 (latest)
Hi @fierce cedar ! 👋 Good to see you back! 🙂
Yes, I don't think the anonymous golang functions will work for GraphQL/multi-lang. But maybe you can draw some inspiration from these modules:
https://github.com/jedevc/daggerverse/blob/main/hugo/main.go
https://github.com/kpenfound/dagger-modules/blob/main/proxy/src/main.py#L13-L33
Hi @steel basalt, nice to see you too!
I’ve finally managed to get some days to work again on Dagger \o/ However, this won’t last long for the moment because we’re just on hold for a several weeks project to start. However, I strongly hope to be able to do a demo to my company department once project Zenith has been release (which should occur this month if I understood correctly?) 😉
Thanks for the links! I’m thinking that instead of passing anonymous functions (which will be almost impossible), we could pass a pointer to a method of our module so that the module we call (Hugo in my case) could call back our module, passing it a container (the base Hugo image) and getting back a modified container (the base Hugo image with additional customization). Not sure that I’m clear here 😛. A container is a serial object, right?
Yes, that sounds good! You can definitely pass Container types around 🙂
Let’s say that I’ve two modules named Caller and Callee, respectively with methods Build() and Customization(*Container) *Container for the first and Container(something I’ve to figure out) *Container for the second.
The thing I don’t know how to do is, how to pass Callee.Container(…) the information that it should call Caller.Customization(*Container) *Container? What argument should I pass to Callee.Container()? Is there something to do that or do I have to deal with low-level GRPC calls (which I don’t know yet)?