-
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
Provider gRPC client logging causes failures. #7156
Comments
Yes - a requirement for a Pulumi plugin is that the first output to |
@lukehoban I wasn't logging anything this just happened using the standard boilerplate that imports the |
I just tried out cloning https://github.com/pulumi/pulumi-provider-boilerplate, updating |
I did some more investigating and after deleting my go mod cache and re-downloading everything it appears to not be an issue. I have no idea what was causing it. |
I noticed this hadn't actually gone away (we just hadn't rebuilt it recently). Having rebuilt without the logging changed I mentioned it still occurs. I have opened up a PR to solve the issue. |
Resolves #7156 Signed-off-by: Liam White <liam@tetrate.io>
I'm trying to write my own provider using the boilerplate template but I think there is a breaking bug. From what I can tell the provider is expected to output to stdout the port it is listening on, but what appears to happen is that grpc logging beats it to it.
When I run Pulumi up I get:
I can fix this by manually configuring the grpc logger to either info log to stderr (or discard).
The only problem with sending to stderr is that it shows up in diagnostics so it may be preferable to
io.Discard
instead.The text was updated successfully, but these errors were encountered: