From eb709f1c6fe954fa86f235445836c8cb733ede32 Mon Sep 17 00:00:00 2001 From: Kentaro Hayashi Date: Thu, 26 Dec 2024 15:38:09 +0900 Subject: [PATCH] windows: add workaround for unexpected exception 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 https://github.com/ruby/logger/issues/107 Signed-off-by: Kentaro Hayashi --- fluentd.gemspec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fluentd.gemspec b/fluentd.gemspec index 195cca94d2..9888878b57 100644 --- a/fluentd.gemspec +++ b/fluentd.gemspec @@ -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