Skip to content

Commit

Permalink
windows: add workaround for unexpected exception
Browse files Browse the repository at this point in the history
Since logger 1.6.3 or later, there is a bug that it cause unexpected
exception (no implicit conversion of Integer into String (TypeError)) on windows.
So hold on 1.6.2 for a while.

See ruby/logger#107

Signed-off-by: Kentaro Hayashi <[email protected]>
  • Loading branch information
kenhys committed Dec 26, 2024
1 parent b01e71b commit eb709f1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fluentd.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ Gem::Specification.new do |gem|
gem.add_runtime_dependency("drb", ["~> 2.2"])

# gems that aren't default gems as of Ruby 3.5
gem.add_runtime_dependency("logger", ["~> 1.6"])
# logger 1.6.3 or later cause bug on windows,
# hold on 1.6.2 for a while. see https://github.com/ruby/logger/issues/107
gem.add_runtime_dependency("logger", ["1.6.2"])

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

0 comments on commit eb709f1

Please sign in to comment.