Skip to content

ci: use latest ruby version for rubocop lane - #148

Merged
kenhys merged 2 commits into
fluent-plugins-nursery:masterfrom
Watson1978:ci
Sep 17, 2026
Merged

kenhys merged 2 commits into
fluent-plugins-nursery:masterfrom
Watson1978:ci

Conversation

@Watson1978

@Watson1978 Watson1978 commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

This PR will solve following error in CI's rubocop lane:

Error: Error: input ruby-version needs to be specified if no .ruby-version or .tool-versions file exists
    at parseRubyEngineAndVersion (/home/runner/work/_actions/ruby/setup-ruby/95ef2b042f9d7a56d8268cba8559e2842e2ad01b/dist/index.js:92609:13)
    at setupRuby (/home/runner/work/_actions/ruby/setup-ruby/95ef2b042f9d7a56d8268cba8559e2842e2ad01b/dist/index.js:92545:35)
    at run (/home/runner/work/_actions/ruby/setup-ruby/95ef2b042f9d7a56d8268cba8559e2842e2ad01b/dist/index.js:92518:11)
    at /home/runner/work/_actions/ruby/setup-ruby/95ef2b042f9d7a56d8268cba8559e2842e2ad01b/dist/index.js:92722:40
    at /home/runner/work/_actions/ruby/setup-ruby/95ef2b042f9d7a56d8268cba8559e2842e2ad01b/dist/index.js:92724:3
    at Object.<anonymous> (/home/runner/work/_actions/ruby/setup-ruby/95ef2b042f9d7a56d8268cba8559e2842e2ad01b/dist/index.js:92727:12)
    at Module._compile (node:internal/modules/cjs/loader:1872:14)
    at Object..js (node:internal/modules/cjs/loader:2003:10)
    at Module.load (node:internal/modules/cjs/loader:1594:32)
    at Module._load (node:internal/modules/cjs/loader:1396:12)

https://github.com/fluent-plugins-nursery/fluent-plugin-systemd/actions/runs/35169719153/job/105038556073

Signed-off-by: Shizuo Fujita <fujita@clear-code.com>
Add benchmark gem to fix following load error:

```
$ bundle exec rubocop
/home/watson/.rbenv/versions/4.0.7/lib/ruby/gems/4.0.0/gems/rubocop-1.13.0/lib/rubocop/cop/style/parallel_assignment.rb:3: warning: tsort was loaded from the standard library, but will no longer be part of the default gems starting from Ruby 4.1.0
You can add tsort to your Gemfile or gemspec to silence this warning.
/home/watson/.rbenv/versions/4.0.7/lib/ruby/gems/4.0.0/gems/rubocop-1.13.0/exe/rubocop:7: warning: benchmark used to be loaded from the standard library, but is not part of the default gems since Ruby 4.0.0.
You can add benchmark to your Gemfile or gemspec to fix this error.
bundler: failed to load command: rubocop (/home/watson/.rbenv/versions/4.0.7/bin/rubocop)
/home/watson/.rbenv/versions/4.0.7/lib/ruby/4.0.0/bundled_gems.rb:60:in 'Kernel.require': cannot load such file -- benchmark (LoadError)
```
@Watson1978
Watson1978 requested a review from kenhys September 17, 2026 01:24
@kenhys
kenhys merged commit 6ccc17c into fluent-plugins-nursery:master Sep 17, 2026
9 checks passed
@Watson1978
Watson1978 deleted the ci branch September 17, 2026 02:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants