[x] Upgrade Jets: Are you using the latest version of Jets? This allows Jets to fix issues fast. There's a jets upgrade command that makes this a simple task. There's also an Upgrading Guide: http://rubyonjets.com/docs/upgrading/
[x] Reproducibility: Are you reporting a bug others will be able to reproduce and not asking a question. If you're unsure or want to ask a question, do so on https://community.rubyonjets.com
[x] Code sample: Have you put together a code sample to reproduce the issue and make it available? Code samples help speed up fixes dramatically. If it's an easily reproducible issue, then code samples are not needed. If you're unsure, please include a code sample.
My Environment
Software
Version
Operating System
OSX
Jets
2.3.5
Ruby
2.5.7
Expected Behaviour
When a gem is removed from the Gemfile or Gemfile.lock, it is not deployed.
Current Behavior
When a gem is removed from the Gemfile or Gemfile.lock, it remains in your gems directory and is still deployed.
Step-by-step reproduction instructions
Add a very large gem to your Gemfile (like bootstrap-sass)
bundle install
Deploy the app
Remove the gem from your Gemfile
bundle install
Deploy the app
Notice how the the gems directory (open /tmp/jets/{project_name}/stage/code/vendor/gems/ruby/2.5.0/) still has the gem inside it.
If your lambda package is too large, then it rejects the deploy.
Solution Suggestion
Quick and easy: Offer a "clean" command to clear out the cache
If your Gemfile.lock file changes since the last deploy, clean the gem cache
Only remove the gems that are not inside your Gemfile.lock
Checklist
jets upgrade
command that makes this a simple task. There's also an Upgrading Guide: http://rubyonjets.com/docs/upgrading/My Environment
Expected Behaviour
When a gem is removed from the Gemfile or Gemfile.lock, it is not deployed.
Current Behavior
When a gem is removed from the Gemfile or Gemfile.lock, it remains in your gems directory and is still deployed.
Step-by-step reproduction instructions
bootstrap-sass
)open /tmp/jets/{project_name}/stage/code/vendor/gems/ruby/2.5.0/
) still has the gem inside it.Solution Suggestion