(aws-lambda-nodejs): bun depenedencies fail with error: lockfile had changes, but lockfile is frozen
#32906
Labels
@aws-cdk/aws-lambda-nodejs
bug
This issue is a bug.
effort/medium
Medium work item – several days of effort
p2
Describe the bug
When a
bun
lockfile contains additional entries compared to what's installed in the docker container at bundling time, the bundling fails with this error:Regression Issue
Last Known Working CDK Version
N/A - this is new behavior I implemented against #31753
Expected Behavior
I expect changes to the lockfile to be allowed and the synth to pass.
Current Behavior
Reproduction Steps
See blimmer/cdk-bug-reports#3 for a working repro case.
Possible Solution
We need to not enforce
--frozen-lockfile
, like we do for other package managers:aws-cdk/packages/aws-cdk-lib/aws-lambda-nodejs/lib/package-manager.ts
Lines 34 to 49 in fb2b229
Additional Information/Context
No response
CDK CLI Version
2.175.1
Framework Version
No response
Node.js Version
22 LTS
OS
MacOS
Language
TypeScript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: