Skip to content

Support Ruby 3.4.2 for ubuntu-26.04 #943

Open

Description

@matiasgarciaisaia

I'm upgrading my project's CI to use the new ubuntu-26.04 Github Runner image (x86), and setup-ruby fails with:

Run ruby/setup-ruby@v1
  with:
    ruby-version: .ruby-version
    bundler-cache: true
    token: ***
Using 3.4.2 as input from file .ruby-version
Modifying PATH
  Entries added to PATH to use selected Ruby:
    /opt/hostedtoolcache/Ruby/3.4.2/x64/bin
Downloading Ruby
  https://github.com/ruby/ruby-builder/releases/download/ruby-3.4.2/ruby-3.4.2-ubuntu-26.04-x64.tar.gz
  Took   0.14 seconds
Error: Error: Unavailable version 3.4.2 for ruby on ubuntu-26.04
          You can request it at https://github.com/ruby/setup-ruby/issues
          Cause: Unexpected HTTP response: 404
    at /home/runner/work/_actions/ruby/setup-ruby/v1/dist/index.js:50283:15
    at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
    at async body (/home/runner/work/_actions/ruby/setup-ruby/v1/dist/index.js:372:14)

So here I am, requesting for that :)

Let me know if I can help somehow with that.

Thanks for the support!

Activity

  1. david-uhlig commented on Oct 1, 2026

    @david-uhlig

    If you can upgrade to the latest patch version Ruby 3.4.11 the ubuntu-26.04 runner should work right away.

  2. eregon commented on Oct 4, 2026

    @eregon
    Member

    Yes, in general we only build the latest patch releases of every series for new runners.

    That should be better documented though, including in this error message.

  3. matiasgarciaisaia commented on Oct 5, 2026

    @matiasgarciaisaia
    Author

    I ended up upgrading to 3.4.11, yes - but that meant some regressions (specifically, we were mistakenly calling some private methods, and 3.4.3 triggered that).

    We were able to fix that, but, yes - if supporting older releases is meant to be an exception, the error message could be improved. Upgrade to x.y.z, or request exceptional support if you consider it worthy at https://github.com/ruby/setup-ruby/issues?

    The link could even be to an issue or discussion explaining when it would make sense to request support vs simply upgrading.

    PS: Not even sure how complex it'd be to do the Upgrade to x.y.z part, resolving the specific version - but definitely welcome if viable.

  4. alapha888 commented on Oct 13, 2026

    @alapha888

    For anyone landing here after encountering this error on ubuntu-26.04: as noted in this thread, newer runner images only preinstall the latest patch of each Ruby series (e.g., 3.4.11 is present, but 3.4.2 is not). The same applies to Python (3.8 and 3.9 are omitted, as are older patch releases from the 26.04 toolcache).

    The same class of pin will break in other repos when ubuntu-latest flips between Oct 19 and Nov 19, so it is worth a quick grep for ruby-version / .ruby-version / python-version pins across your workflows before the window opens.

    Disclosure: I maintain a small open-source checker that automates this scan and flags version pins that differ between 24.04 and 26.04: https://github.com/alapha888/runner-drift-audit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions