-
-
Notifications
You must be signed in to change notification settings - Fork 503
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
Faraday 2.0 requires locking to ~> 1.0 or switching to faraday-net_http #1663
Comments
@trevorturk Thank you for reporting the issue with a detailed analysis. It's very thoughtful. Dropping
Wdyt? @sl0thentr0py I'd like to hear your opinion on this too 🙂 |
I think that's a reasonable plan, thank you! I'm sorry about the Anyway, thank you for your help! |
Hey @st0012, I'd definitely be up for dropping Do you plan to go with plain |
@trevorturk Yeah the @sl0thentr0py Yes I'm going with This week I'll focus on releasing |
Updates:
Since |
I guess this one could be closed, since |
Wow that's great news. I'll still follow our original plan to drop it though. And I'll close this with that 🙂 |
This is great, thanks for the heads up @ojab! |
I just wanted to say that I was able to unlock and upgrade all gems including |
Issue Description
Faraday 2.0 was released with major changes: https://github.com/lostisland/faraday/blob/main/UPGRADING.md#thats-great-what-should-i-change-in-my-code-immediately-after-upgrading
I'd suggest switching to
faraday-net_http
and settingFaraday.default_adapter = :net_http
since this will remove a number of dependencies. Alternatively, it seems you could lock to ~> 1.0, or consider using net_http directly instead of relying on Faraday to sidestep this issue entirely.I'm not sure what's best... locking Faraday to ~> 1.0 might be easiest in the short term, but may cause issues later as users may want to upgrade to Faraday ~> 2.0 for other reasons. Perhaps
sentry-ruby
could detect which version is being used somehow, and switch based on that, but I don't believe you can customize the gem dependencies, so you may need to pick a "winner" between the two in the long termI ran into a similar problem with gem dependencies here: geokit/geokit#250
So perhaps dropping the dependency might be best, but that may result in users needing code changes in order to use Sentry, for example if they're setting
transport_configuration.http_adapter
etc, and of course even that change could significant work on your end.For now, I believe I can just manually lock Faraday to ~> 1.0 in my Gemfile, even though I'm only using Faraday because of Sentry.
Anyway, this is a tricky problem -- I'm happy to help if I'm able. Thank you for your attention!
The text was updated successfully, but these errors were encountered: