KEMBAR78
Comparing v1.262.0...v1.263.0 · ruby/setup-ruby · GitHub
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.262.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.263.0
Choose a head ref
  • 1 commit
  • 3 files changed
  • 1 contributor

Commits on Sep 22, 2025

  1. Print lockfile contents earlier

    Currently, the lockfile gets printed after `bundle install` finished. This could be too late when `bundle install` fails for whatever reason.
    
    I have a workflow that failed like this:
    
    <details><summary>Logs</summary>
    <p>
    
    ```
    
    55s
    Run ruby/setup-ruby@v1
    Modifying PATH
    Downloading Ruby
    Extracting  Ruby
    Print Ruby version
    Installing Bundler
    > bundle install
    /opt/hostedtoolcache/Ruby/2.7.8/x64/bin/bundle config --local path /home/runner/work/rubocop/rubocop/vendor/bundle
    /opt/hostedtoolcache/Ruby/2.7.8/x64/bin/bundle lock
    Fetching source index from https://rubygems.org/
    Network error while fetching
    https://rubygems.org/quick/Marshal.4.8/asciidoctor-0.0.1.gemspec.rz (Connection
    reset by peer - SSL_connect)
    Error: The process '/opt/hostedtoolcache/Ruby/2.7.8/x64/bin/bundle' failed with exit code 17
    Run ruby/setup-ruby@v1
    Modifying PATH
    Downloading Ruby
    Extracting  Ruby
    Print Ruby version
    Installing Bundler
    > bundle install
    /opt/hostedtoolcache/Ruby/2.7.8/x64/bin/bundle config --local path /home/runner/work/rubocop/rubocop/vendor/bundle
    /opt/hostedtoolcache/Ruby/2.7.8/x64/bin/bundle lock
    Fetching source index from https://rubygems.org/
    Network error while fetching
    https://rubygems.org/quick/Marshal.4.8/asciidoctor-0.0.1.gemspec.rz (Connection
    reset by peer - SSL_connect)
    Error: The process '/opt/hostedtoolcache/Ruby/2.7.8/x64/bin/bundle' failed with exit code 17
    ```
    
    </p>
    </details>
    
    It would help to print the lockfile for this I think. It fetching version 0.0.1 confused me but probably the lockfile looks ok. New output:
    
    ```
    Run ./
    Modifying PATH
    Print Ruby version
    Installing Bundler
    > bundle install
    /opt/hostedtoolcache/Ruby/3.2.9/x64/bin/bundle config --local path /home/runner/work/setup-ruby/setup-ruby/vendor/bundle
    /opt/hostedtoolcache/Ruby/3.2.9/x64/bin/bundle lock
    Fetching gem metadata from https://rubygems.org/...........
    Resolving dependencies...
    Writing lockfile to /home/runner/work/setup-ruby/setup-ruby/gemfiles/rails8.gemfile.lock
    Print lockfile
    Cache key: setup-ruby-bundler-cache-v6-ubuntu-24.04-x64-ruby-3.2.9-wd-/home/runner/work/setup-ruby/setup-ruby-with--without--only--/home/runner/work/setup-ruby/setup-ruby/gemfiles/rails8.gemfile.lock-cb69172094f71f01e5207070d9af8d465d9aa9c386ecbad22b1b6e8e43523fd2
    /opt/hostedtoolcache/Ruby/3.2.9/x64/bin/bundle install --jobs 4
    ...
    ```
    
    So it's relatively at the top and not hidden somewhere. Also removes the need to check for the lockfile again.
    Earlopain authored and eregon committed Sep 22, 2025
    Configuration menu
    Copy the full SHA
    0481980 View commit details
    Browse the repository at this point in the history
Loading