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
Python azure-native program fails when built with the latest codegen #8592
Comments
Well, shoot... A while ago, I added support in the Python language host to read an optional Unfortunately, there is a bug in how older CLIs unmarshal the json: pulumi/sdk/go/common/resource/plugin/plugin.go Lines 77 to 78 in 8ea38f6
This returns an error due to a @iwahbe fixed this to work correctly recently in #8515: pulumi/sdk/go/common/resource/plugin/plugin.go Lines 77 to 78 in ee81da2
Once we start including this file in all our Python packages by default, any existing/older CLI without the fix from #8515 is going to run into this error, which is not good. We're going to need to come up with a solution because we want older CLIs to continue to work. I think the best way to avoid this problem is to use a different filename than @mikhailshilkov, as an aside, the GHA workflow for azure-native is installing v3.0.0-rc.1 of the CLI. Any reason not to use a more recent version of the CLI? https://github.com/pulumi/pulumi-azure-native/blob/2f96c035be2064506b628a62a7f5d539d1f4fc81/.github/workflows/pull_request.yml#L59 |
That's definitely an oversight, we'll fix it. Is there an option to switch off this file generation for now? |
Or does the 3.19 CLI contain a fix for this already? |
Unfortunately, no.
No, the fix from #8515 has not been released yet. I know this isn't great, but you could temporarily workaround it by adding a post-codgen step in the Makefile for Python to delete the |
I'm updating azure-native's codegen from 3.19.0 to what's in master (commit 278055c) in this PR. After the update, the Python program stops working with this panic:
see https://github.com/pulumi/pulumi-azure-native/runs/4532362541?check_suite_focus=true#step:21:125
Do I need to change anything in the provider code?
The text was updated successfully, but these errors were encountered: