Giter Site home page Giter Site logo

Comments (5)

eregon avatar eregon commented on August 10, 2024 1

That should repro locally by checking out that branch + running bundle install on Ruby 3.2.2.
It seems a mistmatch between the version specified in the Gemfile and the version passed to setup-ruby.
In any case, it seems pretty clear this is not a setup-ruby issue.

from setup-ruby.

mpurusottamc avatar mpurusottamc commented on August 10, 2024

@eregon on the local machine, I am able to checkout and run bundle install with 3.2.2.

In this case though, since the CI job is checking out only the files in the PR, it does not have access to Gemfile or .ruby-version file. Is there a way to skip the check for Gemfile or .ruby-version and install the version specific in the ruby-version parameter?

from setup-ruby.

eregon avatar eregon commented on August 10, 2024

setup-ruby respects the version you gave it, so it does install Ruby 3.2.2.

The issue if you don't checkout the Gemfile is there is no way to bundle install, so that's a bug of your workflow.

from setup-ruby.

eregon avatar eregon commented on August 10, 2024

According to the workflow you posted it checks out all files, no?

      - name: Checkout Code
        uses: actions/checkout@v4
        with:
          ref: ${{ github.event.pull_request.head.sha }}

But anyway, the command that fails is run: bundle install --jobs 4 --retry 3, this has nothing to do with setup-ruby as far as I can see, it fails after it.

from setup-ruby.

mpurusottamc avatar mpurusottamc commented on August 10, 2024

Thanks for your prompt response @eregon. Yes, I misunderstood :(. checkout step checks out all files.

Adding ruby version to Gemfile to resolve dependency installation issue.

from setup-ruby.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.