Skip to content

Commit 4c8ff5d

Browse files
authored
Backport(v1.19): gem: fix uri gem version to keep IPv6 tests (#5142) (#5144)
Backport #5142 **Which issue(s) this PR fixes**: Related to #5141 **What this PR does / why we need it**: Since uri 1.1.0, `Net::HTTP` will cause a `URI::InvalidComponentError` if we use IPv6 address. To avoid the error, this PR will fix uri version to 1.0.x. **Docs Changes**: **Release Note**: Signed-off-by: Shizuo Fujita <[email protected]>
1 parent 88df154 commit 4c8ff5d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

fluentd.gemspec

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ Gem::Specification.new do |gem|
3939
gem.add_runtime_dependency("strptime", [">= 0.2.4", "< 1.0.0"])
4040
gem.add_runtime_dependency("webrick", ["~> 1.4"])
4141
gem.add_runtime_dependency("zstd-ruby", ["~> 1.5"])
42-
gem.add_runtime_dependency("uri", '~> 1.0')
42+
# uri v1.1.0 breaks the tests using IPv6 addresses.
43+
# https://github.com/fluent/fluentd/issues/5141
44+
gem.add_runtime_dependency("uri", ['~> 1.0', "< 1.1.0"])
4345
gem.add_runtime_dependency("async-http", "~> 0.86")
4446

4547
# gems that aren't default gems as of Ruby 3.4

0 commit comments

Comments
 (0)