Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GetSchema implementation does not work #15

Open
lukehoban opened this issue Jun 1, 2022 · 0 comments
Open

GetSchema implementation does not work #15

lukehoban opened this issue Jun 1, 2022 · 0 comments
Labels
kind/bug Some behavior is incorrect or out of spec

Comments

@lukehoban
Copy link

lukehoban commented Jun 1, 2022

Trying to follow along with the component provider boilerplate example and have successfully installed the built plugin using pulumi plugin install resource xyz 0.0.1 -f ../pulumi-component-provider-py-boilerplate/dist/pulumi-resource-xyz-v0.0.1-darwin-amd64.tar.gz but at this point im still a bit unclear how to use the plugin. My Pulumi.yaml looks like this:

name: HelloApp
runtime:
  name: yaml
description: A minimal Yaml Pulumi program

resources:
  mysite:
    type: xyz:index:StaticPage

and running a preview gives me an error:

    error resolving type of resource mysite: internal error loading package "xyz": could not read plugin [/Users/acme/.pulumi/plugins/resource-xyz-v0.0.1/pulumi-resource-xyz] stdout: EOF 
error: an unhandled error occurred: failed to evaluate template

This is because the GetSchema implementation throws an error - because it uses os.path.dir instead of os.path.dirname.

@lukehoban lukehoban added the kind/bug Some behavior is incorrect or out of spec label Jun 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Some behavior is incorrect or out of spec
Projects
None yet
Development

No branches or pull requests

1 participant