Skip to content
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
@sriram-mv

Description

@sriram-mv

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:

  1. use the script to publish an initial semantic version to SAR
  2. deploy an instance of that app
  3. make a code change to the app but forget to change the semantic version
  4. publish the code change using the script
  5. 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions