Conversation
|
Thanks for the PR. Originally these files ( I'd be hesitant to just change the default behavior like this, and at the very least, it'd require a major version bump. Instead, for now, I think it should be an opt-in configuration option. Would that work for you? |
|
Hm, I'm kinda reluctant to add config, because it doesn't seem a significant enough change for that. IMO, this is a default that is worth changing. Deleting the files in the background is an anti-pattern, when you think about it. We generated these files explicitly by running Also, I don't think "cleaning up" provides much value. The files are regenerated on each deploy, so there's nothing to gain from deleting them afterwards. And they should definitely not be magically deleted after Sure, we can fo a new major. I recommend adding a |
|
Thanks, sounds good. Regarding the change in default, my opinion is that users should be made aware that they'll need to add the generated files to their |
|
We can add a note that they can do so, but they don't need to. Whatever they were doing in the past will still work, since the deployment hook exists. This doesn't change anything. |
I noticed that whenever I run
sls invokeorsls offline, theserverless_rackandrack_adapterfiles are deleted. This is extremely frustrating, as it means I have to runrack installevery time I wish to test my function, which is a pretty expensive operation—I'm not using Docker, and it takes up to two minutes at times, slowing down my entire workflow.There isn't really a need for this, IMO. I think cleanup should be left to the end user.