Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ruby/setup-ruby
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.204.0
Choose a base ref
...
head repository: ruby/setup-ruby
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.205.0
Choose a head ref
  • 1 commit
  • 3 files changed
  • 1 contributor

Commits on Dec 23, 2024

  1. Fixes the latest rubygems installation error with Ruby 3.0

    If set up `rubygems: latest` in workflow,
    it will cause the error with Ruby 3.0 because the latest rubygems does not support Ruby 3.0.
    
    Ref. https://rubygems.org/gems/rubygems-update
    
    ### Error message
    ```
    Updating RubyGems
      /opt/hostedtoolcache/Ruby/3.0.7/x64/bin/gem --version
      3.2.33
      Default RubyGems version is 3.2.33
      Updating RubyGems to latest version
      /opt/hostedtoolcache/Ruby/3.0.7/x64/bin/gem update --system
      ERROR:  Error installing rubygems-update:
      	rubygems-update-3.6.1 requires Ruby version >= 3.1.0. The current ruby version is 3.0.7.220.
      ERROR:  While executing gem ... (NoMethodError)
          undefined method `version' for nil:NilClass
      Updating rubygems-update
      Took   2.86 seconds
    Error: The process '/opt/hostedtoolcache/Ruby/3.0.7/x64/bin/gem' failed with exit code 1
    ```
    
    ### How to reproduce
    ```
            uses: ruby/setup-ruby@v1
            with:
              ruby-version: "3.0"
              rubygems: latest
    ```
    Watson1978 authored and eregon committed Dec 23, 2024
    Configuration menu
    Copy the full SHA
    540484a View commit details
    Browse the repository at this point in the history
Loading
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy