You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
The text was updated successfully, but these errors were encountered:
I've created a repro repo to demonstrate the problem: https://github.com/tamlyn/sls-package-bug
Essentially the problem is this:
package.patterns
SLS config to copy files into the packagesls invoke local
which generates the.build
folderpatterns
sls deploy
(orsls 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 onmain
(thankfully not on production).The text was updated successfully, but these errors were encountered: