Skip to content

fix: use caret range for aws-cdk-lib in project template#805

Merged
notgitika merged 1 commit intoaws:mainfrom
Hweinstock:fix/cdk-dep-strategy
Apr 9, 2026
Merged

fix: use caret range for aws-cdk-lib in project template#805
notgitika merged 1 commit intoaws:mainfrom
Hweinstock:fix/cdk-dep-strategy

Conversation

@Hweinstock
Copy link
Copy Markdown
Contributor

@Hweinstock Hweinstock commented Apr 9, 2026

Description

Problem

When the CDK package bumps its aws-cdk-lib required version, the CLI must manually update its version. This can lead to brief periods where there is an incompatibility between releases/fixes.

Solution

Change aws-cdk-lib from a pinned version (2.243.0) to a caret range (^2.248.0) so npm can auto-resolve peer dep requirements. This prevents future breakage when the constructs package bumps its cdk-lib minimum.

Related Issue

N/A

Documentation PR

N/A

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update
  • Other (please describe):

Testing

How have you tested the change?

  • I ran npm run test:unit and npm run test:integ

  • I ran npm run typecheck

  • I ran npm run lint

  • If I modified src/assets/, I ran npm run test:update-snapshots and committed the updated snapshots

  • agentcore create succeeds after the change (was failing with ERESOLVE before)

Checklist

  • I have read the CONTRIBUTING document
  • I have added any necessary tests that prove my fix is effective or my feature works
  • I have updated the documentation accordingly
  • I have added an appropriate example to the documentation to outline the feature, or no new docs are needed
  • My changes generate no new warnings
  • Any dependent changes have been merged and published

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the
terms of your choice.

@github-actions github-actions Bot added the size/xs PR size: XS label Apr 9, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 9, 2026

Package Tarball

aws-agentcore-0.8.0.tgz

How to install

npm install https://github.com/aws/agentcore-cli/releases/download/pr-805-tarball/aws-agentcore-0.8.0.tgz

@Hweinstock Hweinstock force-pushed the fix/cdk-dep-strategy branch from 5a656ed to e7ff5ae Compare April 9, 2026 20:06
@github-actions github-actions Bot added size/xs PR size: XS and removed size/xs PR size: XS labels Apr 9, 2026
@Hweinstock Hweinstock force-pushed the fix/cdk-dep-strategy branch from e7ff5ae to 9769fed Compare April 9, 2026 20:07
@github-actions github-actions Bot added size/xs PR size: XS and removed size/xs PR size: XS labels Apr 9, 2026
@Hweinstock Hweinstock changed the title fix: pin @aws/agentcore-cdk and use caret range for aws-cdk-lib fix: use caret range for aws-cdk-lib in project template Apr 9, 2026
@Hweinstock Hweinstock force-pushed the fix/cdk-dep-strategy branch from 9769fed to 1471528 Compare April 9, 2026 20:36
@github-actions github-actions Bot added size/xs PR size: XS and removed size/xs PR size: XS labels Apr 9, 2026
@Hweinstock Hweinstock marked this pull request as ready for review April 9, 2026 20:50
@Hweinstock Hweinstock requested a review from a team April 9, 2026 20:50
Copy link
Copy Markdown
Contributor

@notgitika notgitika left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@notgitika notgitika merged commit 6e19463 into aws:main Apr 9, 2026
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/xs PR size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants