Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

httpclient dependency causing deprecation warnings about failure in Ruby 3.4.0 #94

Open
aramprice opened this issue Sep 27, 2024 · 1 comment

Comments

@aramprice
Copy link
Member

aramprice commented Sep 27, 2024

The httpclient dependency of cf-uaa-lib hasn't had updates in 4+ years and using cf-uaa-lib on Ruby 3.3.x results in the following warnings:

~/.gem/ruby/3.3.5/gems/httpclient-2.8.3/lib/httpclient/auth.rb:11: warning: ~/.rubies/ruby-3.3.5/lib/ruby/3.3.0/mutex_m.rb was loaded from the standard library, but will no longer be part of the default gems starting from Ruby 3.4.0.
You can add mutex_m to your Gemfile or gemspec to silence this warning.
Also please contact the author of httpclient-2.8.3 to request adding mutex_m into its gemspec.

While a short term fix of adding mutex_m as a gem dependency will resolve the warning it might be prudent to switch to Ruby's standard HTTP client https://github.com/ruby/net-http since httpclient doesn't appear to be maintained any longer.

This was recently done in bosh: cloudfoundry/bosh#2557

@aramprice
Copy link
Member Author

See also #101

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

1 participant