(cli): Give a warning when the languages cdk libraries are older than cdk
- Dominant language
- TypeScript
- Stars
- 12.9k
- Forks
- 4.6k
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 83
Description
### Description
Give a warning when the languages cdk libraries are older than cdk
### Use Case
I spent hours trying to fix a circular dependency (in aws-cdk-lib.pipelines) I saw an issue with cdk 2.9.0 but thought I had 2.15.0 so it could not be that. Banged my head on the issue for ages then on a punt I ran `pip install --upgrade -r requirements.txt` and that fixed it.
Please could we have some warning when node's cdk and a language, like python's aws aws-cdk-lib, are out of step.
I know I could update the requirements.txt on each upgrade to version chase but that would be a pain
### Proposed Solution
Warning: you are running cdk version 7.8.9 but your language support aws-cdk-lib is only version 1.2.3, consider upgrading
### Other information
_No response_
### Acknowledge
- [ ] I may be able to implement this feature request
- [ ] This feature might incur a breaking change
Contributor guide
Research direction
Start by examining how the CDK CLI determines its own version and how language libraries such as Python's aws-cdk-lib could be discovered; the issue mentions requirements.txt and aws-cdk-lib.pipelines as reproduction context. Done means the CLI warns when the CDK version and language-library version are out of step, using the proposed version details in the message.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- node.js, python, typescript
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100