Is this the recommended way to test custom provide...
# package-authoring
r
Is this the recommended way to test custom providers written in go? https://github.com/pulumi/providertest
m
It is. But note that it also contains pulumitest, which is probably easier for most scenarios. Also note that all of this is v0.* so breaking changes may occur.
r
Thanks! Yeah I’ve noticed a few rough edges playing around with the go provider stuff but nothing too bad
I’ve been looking into this today. I built a provider using github.com/pulumi/pulumi-go-provider and I’m trying to attach it using an github.com/pulumi/providertest/pulumitest/opttest
AttachProviderServer
option. Is it possible to return a
pulumirpc.ResourceProviderServer
from a provider created using the
infer
package? Or do I need to compile the binary first and use
AttachProviderBinary
instead?