https://pulumi.com logo
Title
g

gorgeous-accountant-60580

07/25/2022, 7:38 AM
Hello! I’ve made a component resource, in Go, and I’m trying to use this from another part of our code tree. I get an error saying:
error: no resource plugin 'pulumi-resource-foo' found in the workspace or on your $PATH, install the plugin using `pulumi plugin install resource foo`
Is it necessary to write a fully fledged plugin in order to create a component resource, or am I just doing it wrong?
g

great-sunset-355

07/25/2022, 7:48 AM
it looks like you are building a
Resource
not a
ComponentResource
IMO ComponentResource only reuses existing providers. It should not need any installation. (unless it's a separate package) https://www.pulumi.com/docs/intro/concepts/resources/components/
g

gorgeous-accountant-60580

07/25/2022, 7:54 AM
Right you are! I’d managed to use
pulumi.CustomResourceState
rather than
pulumi.ResourceState
in my resource struct Thanks!