This repository was archived by the owner on Aug 31, 2021. It is now read-only.
This repository was archived by the owner on Aug 31, 2021. It is now read-only.
sam publish duplicate semantic version issue #33
Open
Description
Description
When using sam publish command to publish a new version of a SAR app, if I forget to update the semantic version in the template metadata, it succeeds leading the user to think they published a new version.
Steps to reproduce
We use this script when publishing to SAR:
https://github.com/awslabs/aws-athena-query-federation/blob/master/tools/publish.sh
It has the exact commands that get run. The steps to reproduce are:
- use the script to publish an initial semantic version to SAR
- deploy an instance of that app
- make a code change to the app but forget to change the semantic version
- publish the code change using the script
- attempt to deply an update to the previous app instance.
You'll find that step #4 doesn't throw and error but that after step 5 which also won't error, the deployed app will still be running the code from step 1.
Expected result
Step #4 should somehow throw an error or helpful information to indicate a new version is not published so that we can stop before running step 5.
Metadata
Metadata
Assignees
Labels
No labels