Open EvanBoyle opened 1 year ago
Not sure if there is a better way, but I went ahead and just added a make target that builds the binary, then uses pulumi package get-schema
with the newly built provider binary to generate the schema:
https://github.com/pulumi/pulumi-auto-deploy/commit/cbad54cb542ea7d27ebdaa4dfe2e1b749dc44e9d
Also needed https://github.com/pulumi/pulumi-auto-deploy/commit/da12544279f11f5426fe060c84a6ea46670fa950 to remove the ever-changing version field after the schema is generated.
The go provider library does not require a schema as all necessary info is expressed via code. However, publishing to the Pulumi registry requires adding an entry with a pointer to the provider's schema.json file:
Not sure how to follow the docs on publishing to registry without a schema file in my provider that was generated from this boilerplate.