#Hello, I’m playing with interfaces in
1 messages · Page 1 of 1 (latest)
Can you share more of the code involved here? Specifically wondering where the WithGraphQLQuery method referenced in the error message is coming from.
At first glance, the way you are using interfaces looks like it should work today, even with the current restrictions
That’s the whole code of the module. I added a container method so that it can be invoked:
dagger call -m github.com/yann-soubeyrand/daggerverse/test@test-interfaces container terminal
Is it related to the fact that we cannot have a function which returns a type from another module (which would make the above code useless anyway)?
Ah yeah, well defining the interface like that would mean that you can only define implementations of TestOption in the same module where Test is defined, so yeah that does reduce the utility somewhat. But it still shouldn't error out the way it is, need a fix there. Will look into that.
This is definitely a fixable bug, but need to finish up some other stuff first, so put an issue in our milestone to be fixed in a near future release: https://github.com/dagger/dagger/issues/6929
Repro: https://github.com/yann-soubeyrand/daggerverse/blob/0bfceb15f2597da89cb08bd6c8ba5c73baea6df7/test/main.go The problem is that the autogenerated method for the interface impl tries to call Wi...