terraform-cdk
terraform-cdk copied to clipboard
CDKTF should check if the pre-built providers peer dependency matches the installed cdktf version
trafficstars
Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment
Description
When working with pre-built providers in Java it can happen that maven installs a cdktf version that not matches what is specified in the pom.xml, because of outdated peer dependencies requiring an older version. To make a user aware of this we need a check reminding folks to upgrade.
References
- https://discuss.hashicorp.com/t/cdk-not-respecting-pom-xml/45418/7
Some notes on other languages:
For Python (pip and pipenv) and Go, there appears to be no warning when installing an older pre-built provider (i.e. targeting an older CDKTF version) – but at least it does not fall back to an older CDKTF version than specified like Maven does 😅
For NPM and Dotnet it already prints an error when trying to install without matching peer dependencies 👍