https://pulumi.com logo
#general
Title
# general
a

alert-nightfall-64120

09/19/2023, 2:50 PM
Can you make custom provider components that reference custom components within itself? Custom Component Provider • Component A • Component B ◦ Component A It works when writing the components in Typescript but I can't get it working writing it in Go....
b

billowy-army-68599

09/19/2023, 2:59 PM
do you mean a component resource that references another component resource?
a

alert-nightfall-64120

09/19/2023, 3:00 PM
Yes sorry I do mean component resources.
b

billowy-army-68599

09/19/2023, 3:01 PM
yeah that should work, what’s not working for you?
a

alert-nightfall-64120

09/19/2023, 4:49 PM
hmm turns out I found a faulty child component through process of elimination- the error was just not helpful on the parent component... I'm trying to generate a custom data array output type in an ApplyT and the part of casting it is failing:
Copy code
}).(SubnetworkArrayOutput)
That component just happened to be in all my other components! I think my problem is flattening outputs. If I have an output of an output - how do I turn that into a single output? e.g. if an ApplyT returns a StringOutput inside the ApplyT - that will get wrapped in another Output... How do I have it not do that?
2 Views