TImeline for adding Ruby 3.3.1 support?

Any timeline for adding support for Ruby 3.3.1 in Cloudflare Pages? It was released about a week and a half ago, but your build machines don’t currently support it, failing with this error:

Version not found

If this is a new Ruby version, you may need to update the plugin:
asdf plugin update ruby

I know I’m a bit ahead of the curve here, since the release was so recent, but I’d like to know if/when this will come.

1 Like

Currently, there is no update yet for that. You can check the documentation for the current version that is supported:

That docs page is the first place I checked, but it doesn’t list all supported versions. All it says is “Supported versions: Any version” for Ruby.

Hi @sufi - is there any update on this?

Ruby 3.3 came out almost 9 months ago so it’s surprising that Cloudflare Pages still doesn’t support it.

Are new versions of Ruby going to be supported going forward, or do Jekyll and other Ruby based static site generator users need to find alternative hosting products?

At minimum, could the docs at Language support and tools | Cloudflare Pages docs be updated to clarify that it only supports versions up to Ruby 3.2 as the “supported versions” of “any version” is misleading.

I’ve sent this to the Builds/CI PM :slight_smile:

1 Like

New Pages build image update just rolled out last week. Let me know if that fixed your issue!

We are also working on improving the docs for this section, thank you so much for the feedback. :slight_smile:

Hi @anni - thanks for that!

I got a successful build with 3.3.1. I notice that it appears to have built Ruby from source which does take a few minutes, but it’s nice to see it working.

Here’s some logs from it building:

21:53:30.813	Detected the following tools from environment: [email protected]
21:53:30.814	Installing ruby 3.3.1
21:53:31.244	==> Downloading ruby-3.3.1.tar.gz...
21:53:31.250	-> curl -q -fL -o ruby-3.3.1.tar.gz https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.1.tar.gz
21:53:31.264	  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
21:53:31.265	                                 Dload  Upload   Total   Spent    Left  Speed
21:53:32.174	
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 21.0M  100 21.0M    0     0  23.1M      0 --:--:-- --:--:-- --:--:-- 23.1M
21:53:33.026	==> Installing ruby-3.3.1...
21:53:33.097	-> ./configure "--prefix=$HOME/.asdf/installs/ruby/3.3.1" --enable-shared --with-ext=openssl,psych,+
21:54:26.158	-> make -j 8
21:57:30.880	-> make install
21:58:09.655	==> Installed ruby-3.3.1 to /opt/buildhome/.asdf/installs/ruby/3.3.1

I tried with Ruby 3.3.5 but unfortunately it’s still the same asdf “version not found” error.

Out of curiosity, how often are the build images updated?
I might need to do a bit more research on asdf to figure out how it’s working - but it seems it seems to be updated to get support for the latest versions of Ruby.

Now 3.3.5 is available as well but 3.3.6 is not.

I’ve also just run into this issue and had to downgrade from version 3.4.2 to 3.3.5 in order to get my build working on Cloudflare Pages. I had to test every version one by one to find the latest version actually supported since it’s not documented anywhere.

Version 3.3.5 is nearly 6 months old now (released 2024-09-03). It would be great if these dependencies could be updated more frequently. If that’s not possible, at a minimum the documentation should be updated to indicate what version are supported, or to indicate that recent versions may take a few months to become available. The current documentation indicating that “Any version” can be used is wrong.

Hello! I just got to this thread while searching online. +1 to all the same problems and error messages shown here.

The latest stable 3.3.x and 3.4.x Ruby versions as of this writing (3.3.7 and 3.4.2) are giving the same error messages as reported above.

Version not found

If this is a new Ruby version, you may need to update the plugin:
asdf plugin update ruby

I saw a September 2024 reply in this thread saying they would improve the docs because the docs currently say “All Versions supported” for Ruby Build image · Cloudflare Pages docs

It even says

“Any version” refers to support for all versions of the language or tool including versions newer than the Default version.

So my question is what is the actually currently supported versions?

And are there any updates on updating the docs?

Thank you