This post seems to indicate a better fix than manually setting RUBY_VERSION
in netlify.toml
:
After deleting the explicit Ruby version pin, I was able to get my site building on the 20.04 image by following these steps:
- Under “Site settings > Build & Deploy > Continuous Deployment > Build image selection”, click “Edit Settings” and switch the image to “Ubuntu Focal 20.04 (beta)”.
- Under “Site settings > Build & Deploy > Continuous Deployment > Build settings”, click “Editing Settings” and then “Link to a different repository”. Choose the same repo and branch as before.
This reset all the hidden tool version pinnings to the defaults for the 20.04 image, and cut about 20 seconds off the site build time.
Maybe it would make sense to reset the pins when switching images? It would have saved a lot of debugging time.