Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deployed package contains deleted files #275

Open
tamlyn opened this issue Jul 13, 2022 · 0 comments
Open

Deployed package contains deleted files #275

tamlyn opened this issue Jul 13, 2022 · 0 comments

Comments

@tamlyn
Copy link

tamlyn commented Jul 13, 2022

I've created a repro repo to demonstrate the problem: https://github.com/tamlyn/sls-package-bug

Essentially the problem is this:

  • use the package.patterns SLS config to copy files into the package
  • run a command such as sls invoke local which generates the .build folder
  • delete a file that would be included by the patterns
  • run sls deploy (or sls package)

Then the deleted file is included in the package and deployed, because it was incorrectly cached in the .build folder.

This caused some havoc when a migration from a feature branch was cached like this in .build then accidentally deployed and run on main (thankfully not on production).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant