Comments (5)
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.
@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.
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.
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.
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)
- Ruby v3.2.3 support HOT 1
- Support non `runner` user on self-hosted runners HOT 3
- Missing Ruby 3.3.1 on Windows HOT 5
- Download link is invalid for Ruby 2.5.9 on macos 13 arm64
- Ruby version should be read from Gemfile.lock by default HOT 6
- Faild in ubuntu-24.04 runner HOT 4
- Request: Support Windows on Arm64 HOT 7
- Download link is invalid for macos-latest (macos-13) with Ruby 2.5 HOT 12
- Cannot install the `actiontext` gem with Rails 7.1 and Ruby 3.1/3.2 on the Ubuntu 22.04 runner HOT 2
- Considering to move the list of ruby versions to ruby-builder HOT 3
- deuces9ers
- Are the rubies built with, or allow using, jemalloc? HOT 1
- Bundle step does not seem to respect .bundle/config files in the CWD HOT 4
- It does work with `2.2.17`, but doesn't work with `2.1.4`. I'm not going to bisect that further, but that's the fix - you need to use a more recent Bundler on Windows than you do on other platforms, and it needs to be at least I guess `2.2` or so. HOT 1
- Add jruby-9.4.8.0 to @v1 HOT 1
- Error: Unavailable version 24.0.1 for truffleruby on windows-2022 HOT 2
- Feature request: infer the ruby version from the Gemfile's `ruby` HOT 2
- Could not locate Gemfile or .bundle/ directory HOT 1
- Permissions errors on runners with Ruby preinstalled HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from setup-ruby.