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
My understanding (via @aluzzardi) is that the client shouldn't be returning []EnvVariable.
Log output
$ go run ./cmd/dagger/main.goConnectingGetting EnvVariables from nginx:1.23.2input:1: Field "envVariables" of type "[EnvVariable!]!" must have a sub selection.Please visit https://dagger.io/help#go for troubleshooting guidance.Printing 0 environment variables
RE: how we can fix this. @aluzzardi mentioned not allowing objects in lists in Discord (at least that was my understanding, correct me if wrong).
If we are willing to trade more complexity for having the ability to return objects in lists maybe we could figure something out around autoselecting all trivial scalars for those cases, though I don't know if we'll have to apply that fix on a case-by-case basis (ugly) or if there's a way of cleanly generalizing it. Vague idea, might be a deadend, but in general it would be nice to support these return types.
Activity
sipsma commentedon Nov 15, 2022
RE: how we can fix this. @aluzzardi mentioned not allowing objects in lists in Discord (at least that was my understanding, correct me if wrong).
If we are willing to trade more complexity for having the ability to return objects in lists maybe we could figure something out around autoselecting all trivial scalars for those cases, though I don't know if we'll have to apply that fix on a case-by-case basis (ugly) or if there's a way of cleanly generalizing it. Vague idea, might be a deadend, but in general it would be nice to support these return types.
jlongtine commentedon Nov 15, 2022
I like that idea, as well, @sipsma. It'd make using the SDK even easier.
helderco commentedon Nov 15, 2022
Duplicate of #3457