lambda-maven-plugin icon indicating copy to clipboard operation
lambda-maven-plugin copied to clipboard

Publish function if lambda code changes

Open abargnesi opened this issue 7 years ago • 3 comments

Currently with version 2.3.2 I cannot publish a new version if only the lambda code package changes.

When we release our project we set publish to true and forceUpdate to false. We do not want to force update because that will deploy and publish new version even when the code/config have not changed.

What I propose is to additionally publish a new version if publish is true and the code package has been updated due to checksum differences.

Edit:

My motivation is production deployments only when there are actual λ code / config changes. Otherwise publishing different versions with the same effective config/code is redundant and confusing later.

abargnesi avatar Feb 15 '18 22:02 abargnesi

Sounds good. Were you planning to submit a PR?

SeanRoy avatar Feb 16 '18 00:02 SeanRoy

Sure I will take a crack at it.

abargnesi avatar Feb 16 '18 00:02 abargnesi

It's fine if you weren't, I just needed to know. If you still want to do it please be aware of the other PR that is touching some of the same code areas.

SeanRoy avatar Feb 16 '18 01:02 SeanRoy