suroh1994 / sampackagesample

A MVP of the issue with sam package reuploading unmodified files.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to reproduce

  1. Clone this repository into a directory on your local Windows machine.
  2. cd into the directory.
  3. Run sam build.
  4. Run sam package --s3-bucket YOUR_BUCKETNAME
  5. Clone this repository into a second directory on your local windows machine.
  6. Copy the second directory into a third directory using xcopy seconddirectory thirddirectory /s /e.
  7. cd into the second directory.
  8. Run sam build.
  9. Run sam package --s3-bucket YOUR_BUCKETNAME
  10. cd into the third directory.
  11. Run sam build.
  12. Run sam package --s3-bucket YOUR_BUCKETNAME

Expected result: The binaries are only uploaded once in step 4.
Observed result: The binaries are being uploaded three times in step 4, step 9 and step 12.

This was tested with the AWS SAM CLI version 1.31.0 on Windows 10 Pro Version 20H2 (Build 19042.1165)

About

A MVP of the issue with sam package reuploading unmodified files.


Languages

Language:Go 100.0%