You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Go SDK: support modules own types being used as and with interfaces #6366
Right now there's a fairly annoying limitation in that in Go modules it's not possible to use an object you've defined in your module to implement an interface you've defined in your module.
This is due to the fact that interfaces are passed by ID by right now objects defined in a module are still passed by raw json in the context of themselves (some previous discussion with more context on why here).
So to support this I think we'll probably just want to bite the bullet and deal with the complication of passing an object by id within the module it's defined in.
changed the title [-]Go SDK: support objects from a user's module being passed as interface values[/-][+]Go SDK: support modules own types being used as and with interfaces[/+]on Jan 22, 2024
Activity
[-]Go SDK: support objects from a user's module being passed as interface values[/-][+]Go SDK: support modules own types being used as and with interfaces[/+]chrisjpalmer commentedon May 12, 2025
+1 on this issue :)
chrisjpalmer commentedon May 12, 2025
I have the following use case... I have a builder module defined as follows:
Then I have module in a project repo which consumes the builder module:
Unfortunately the above does not work as currently the
.AsBuilderTask()method is not generated for this type. Currently I get around this like so:Would love to see this implemented as it would remove the need to have an extra module :)