Rewrite Construct
handling in line with Call
#276
Labels
1.0.0-blocker
An issue that must be resolved before 1.0.0
impact/breaking
Fixing this issue will require a breaking change
kind/enhancement
Improvements or new features
The interface provided by
provider.Provider.Construct
is extremely hard to work with and test against. The interface was "designed" during hack-week and was thus extremely rushed.pulumi-go-provider/provider.go
Lines 1033 to 1044 in c63d6b6
Downsides are:
resource.PropertyMap
inputs and outputs.rpc.Provider
interop: SupportConstruct
calls onrpc.Provider
#219integration
#82provider.Provider.Call
has a lot of the same constraints, but a much more reasonable interface:pulumi-go-provider/provider.go
Lines 815 to 832 in c63d6b6
Note that
Call
has the same set of constraints asConstruct
, but there was more time spent doing design work.To make it easier/possible to support #82, #219 and #266, we should re-write
Construct
in the same style asCall
.This will be a breaking change, so it must go in before 1.0.0. This should not effect
infer
based component, since they are authored at a higher level. It will effect howinfer
implements components, and will enable better error messages (or even fixes) to issues like #270.The text was updated successfully, but these errors were encountered: