-
Notifications
You must be signed in to change notification settings - Fork 88
Open
Labels
feature-requestA feature should be added or improved.A feature should be added or improved.module/cli-extp2This is a standard priority issueThis is a standard priority issuequeued
Description
Describe the bug
Because dotnet lambda package does not zero out the mtimes of the files in the zip, the zip file itself constantly changes on every build. This means that even rerunning a build of the same exact commit will lead to a cdk diff.
Expected Behavior
dotnet lambda package should produce identical results given identical inputs.
Current Behavior
The original mtimes are preserved, so there is always a diff.
Reproduction Steps
- Run
dotnet lambda package. - Use
cdk deployto deploy a stack with that lambda function. - Run
dotnet lambda packageagain. - Run
cdk diff.
Possible Solution
Set all mtimes to zero (or provide a flag for this).
Additional Information/Context
No response
Targeted .NET platform
.NET Core 3.1
CLI extension version
amazon.lambda.tools 4.0.0 dotnet-lambda
Environment details (OS name and version, etc.)
Debian
Metadata
Metadata
Assignees
Labels
feature-requestA feature should be added or improved.A feature should be added or improved.module/cli-extp2This is a standard priority issueThis is a standard priority issuequeued