-
-
Notifications
You must be signed in to change notification settings - Fork 256
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to pick 3.2.2 version when only git diff files are in the scope #580
Comments
That should repro locally by checking out that branch + running |
@eregon on the local machine, I am able to checkout and run bundle install with 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 |
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 |
According to the workflow you posted it checks out all files, no?
But anyway, the command that fails is |
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. |
Ensure the following before filing this issue
I verified it reproduces with the latest version with
- uses: ruby/setup-ruby@v1
(see Versioning policy)I tried to reproduce the issue locally by following the workflow steps (including all commands done by
ruby/setup-ruby
, except forDownloading Ruby
&Extracting Ruby
),and it did not reproduce locally (if it does reproduce locally, it's not a ruby/setup-ruby issue)
Are you running on a GitHub-hosted runner or a self-hosted runner?
GitHub-hosted runner
Link to the failed workflow job (must be a public workflow job, so the necessary information is available)
NA
Any other notes?
I am trying to run rubocop only on the changed files. For that, i am checking out the PR branch. But, when i try to install ruby 3.2.2, it throws an error.
Here's the error (with debug logs enabled):
Screenshot:
Here's my entire yml file:
Any help is much appreciated.
The text was updated successfully, but these errors were encountered: