Python pre-release SDKs use wrong provider version #16212
Labels
area/codegen
SDK-gen, program-gen, convert
impact/reliability
Something that feels unreliable or flaky
kind/bug
Some behavior is incorrect or out of spec
language/python
Python SDKs for pre-release versions of providers send incorrect version numbers in the default resource and invoke options.
In the generated
_utilities.py
file, the default options are calculated by:get_version
is defined as:_get_semver_version
reads the version from theroot_package
version metadata:This python version is insufficient to calculate the correct provider version. For example, a provider version of
1.93.1-alpha.1675198718+c586f7b1
gets transformed into the python version1.93.1a1675198718
which lacks the whole section for+c586f7b1
.When the python SDK is generated with the
respectSchemaVersion
option enabled, thepulumi-plugin.json
file is generated with the.version
field populated with the original provider version. If this is available (which it is now for all providers), then this value should be used for the default resource and invoke options.The text was updated successfully, but these errors were encountered: