google-api-ruby-client icon indicating copy to clipboard operation
google-api-ruby-client copied to clipboard

google-apis-core: Ruby 3.4 warning: literal string will be frozen in the future in httpclient/util.rb:71

Open javierjulio opened this issue 11 months ago • 4 comments

On upgrading to Ruby 3.4, we've run into the following warning from our test suite with google-apis-core which is the only gem that has an httpclient dependency.

/Users/j.julio/.rbenv/versions/3.4.1/lib/ruby/gems/3.4.0/gems/httpclient-2.8.3/lib/httpclient/util.rb:71: warning: literal string will be frozen in the future (run with --debug-frozen-string-literal for more information)

Related to #2348 since httpclient doesn't seem to be maintained and the issue causing this warning has been unaddressed for many years.

javierjulio avatar Jan 17 '25 20:01 javierjulio

Running into this as well. Seems like dropping httpclient in favour of Faraday seems to be the way to go here.

gstokkink avatar Jan 22 '25 14:01 gstokkink

Just FYI. httpcilent is having new changes like https://github.com/nahi/httpclient/pull/471 .

yahonda avatar Feb 18 '25 13:02 yahonda

Same here, tracked it down to this line,

kidpollo avatar Mar 04 '25 19:03 kidpollo

I also suggest adding 3.4.2 to the build targets

kidpollo avatar Mar 04 '25 19:03 kidpollo