Jets doesn’t support Ruby 2.7 yet. Started looking into it and it’s more complicated than just changing the runtime.
Gems are usually installed in a Ruby folder that matches the Ruby version.
2.5.7 -> 2.5.0
2.7.0 -> 2.7.0
Currently, Jets packages gems in the 2.5.0 folder regardless. That has to be adjusted. So, that’s simple.
However, there are other issues also. It looks like the new Lambda runtime uses a stripped-down version of the Amazon Linux 2 AMI. Common shared libraries, which many gems rely on, are also not installed. This causes issues with common gems like nokogiri.
It looks like AWS did the same thing with node8 to node10. Some links:
- https://forums.aws.amazon.com/thread.jspa?threadID=312245
- https://amp.reddit.com/r/aws/comments/bxzzov/node_10_lambda_runtime_does_not_match_the/
It will be a decent amount of work and time. Can follow issue here: https://github.com/tongueroo/jets/issues/444