Describe the bug
In the pulumi-buildkite, I ran into the provider error upon constructing the ProviderInfo:
error: fatal: failed to Init GRPC to register RPC handlers: failed to create resource provider: info.P must be constructed with ShimProvider or ShimProviderWithContext: found non-conforming type *muxer.ProviderShim
Describe the bug In the
pulumi-buildkite
, I ran into the provider error upon constructing theProviderInfo
:The source code construct
ProviderInfo
like this:The
info.P
was expecting a conforming provider type...I have seen many plugins providing
Provider()
function which returns conforming provider (for example https://github.com/pulumi/pulumi-mongodbatlas/blob/master/provider/resources.go#L72). So can we adopt the same pattern?