-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
feat: enable imports from nodejs provider resources #14668
Conversation
PR is now waiting for a maintainer to take action. Note for the maintainer: Commands available:
|
Changelog[uncommitted] (2023-11-29)Features
|
What errors exactly? "inputs" are not "props" and are in general not required for the engine to do an import. Which also makes this change a bit suspicious, because the props returned by "read" might not be the right thing to also tell the engine are inputs. |
I got the error originating from here: https://github.com/pulumi/pulumi/blob/master/pkg/resource/deploy/step.go#L1037 I'm very unfamiliar with the pulumi codebase. Do you think it's maybe better to change the Do we have an example (from maybe another SDK) what that should look like? |
Yeh that's probably more correct. It's what the C# SDK does (https://github.com/pulumi/pulumi-dotnet/blob/main/sdk/Pulumi/Provider/Provider.cs#L217-L222) and the Go SDK (https://github.com/pulumi/pulumi-go-provider/blob/main/infer/resource.go#L113-L114) |
PR is now waiting for a maintainer to take action. Note for the maintainer: Commands available:
|
Fixed that, please let me know if you have any more concerns. |
Provider developers are users too :) Add a changelog for this and we can get it merged. |
PR is now waiting for a maintainer to take action. Note for the maintainer: Commands available:
|
@Frassle Any clue what's going on with the build pipeline? Doesn't seem likely that it's caused by these changes? |
CI pipeline is known to be flakey at the moment, I can just keep retrying this till it goes through. |
Description
I was writing a typescript resource provider, but got errors that the the plugin didn't support imports, while the
read
method was implemented on the provider.This PR also sets the
Inputs
on theReadResponse
, so imports will be supported.Fixes # (issue)
Could not find existing issue
Checklist
I have run
make tidy
to update any new dependenciesI have run
make lint
to verify my code passes the lint checkI have formatted my code using
gofumpt
(None of the above, since the change is in js code)
I have added tests that prove my fix is effective or that my feature works
There are no existing tests for the
server.ts
file. If really required for merging I could maybe take a look at a test for this use-case.I have run
make changelog
and committed thechangelog/pending/<file>
documenting my changeYes, there are changes in this PR that warrants bumping the Pulumi Cloud API version