Why does the `infer.ComponentResource` interface's...
# contribute
r
Why does the
infer.ComponentResource
interface's
Construct
method only accept 1
pulumi.ResourceOption
? Shouldn't it accept multiple options like most other pulumi resources? https://github.com/pulumi/pulumi-go-provider/blob/4f9aabc7ea64a4ab9c77ac592fa13b3e449553c9/infer/component.go#L38
m
Maybe @ancient-policeman-24615 knows
a
It accepts only one argument because that’s the shape of the internal API that it depends on, and in reality that’s what comes over the wire. If you need to get around this for some reason, you can always use
Composite
(src).
r
Perfect, thank you!