Skip to content

Commit

Permalink
Add missing dependency to base64
Browse files Browse the repository at this point in the history
Since ruby 3.4.0, base64 is changed to non-default
gems. It need to be installed explicitly now.
(service discovery and out forward plugin use it)

At least base64 >= 0.1.0 should be installed.

FYI:

* ruby 3.0.0 (base64 0.1.0)
* ruby 3.0.6 (base64 0.1.0)
* ruby 3.1.4 (base64 0.1.1)
* ruby 3.2.3 (base64 0.1.1)
* ruby 3.3.0 (base64 0.2.0)

It seems that ruby-2.7.8 bundles base64 0.1.0 equivalent version.

e.g. It fixes the following LoadError.

 warning: base64 was loaded from the standard library, but is not part
 of the default gems since Ruby 3.4.0. Add base64 to your Gemfile or
 gemspec.
 /home/runner/.rubies/ruby-head/lib/ruby/3.4.0+0/bundled_gems.rb:74:in
 'Kernel.require': cannot load such file -- base64 (LoadError)

Signed-off-by: Kentaro Hayashi <[email protected]>
  • Loading branch information
kenhys committed Mar 6, 2024
1 parent 2b4ca5d commit 0db5160
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fluentd.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ Gem::Specification.new do |gem|
gem.add_runtime_dependency("tzinfo-data", ["~> 1.0"])
gem.add_runtime_dependency("strptime", [">= 0.2.4", "< 1.0.0"])
gem.add_runtime_dependency("webrick", ["~> 1.4"])
gem.add_runtime_dependency("base64", ["~> 0.1"])

# build gem for a certain platform. see also Rakefile
fake_platform = ENV['GEM_BUILD_FAKE_PLATFORM'].to_s
Expand Down

0 comments on commit 0db5160

Please sign in to comment.