restrict faraday version to 1.x#228
restrict faraday version to 1.x#228adjam wants to merge 1 commit intorsolr:masterfrom adjam:use-faraday-lt-2
Conversation
|
@adjam what would need to change in rsolr if we wanted to use faraday 2.x? Is there a way we can make it compatible with both versions? |
|
@jcoyne not really sure -- the recommendation per the error message is to call I haven't investigated other changes to Faraday 2 that might impact rsolr; my approach here is to issue a quick fix that should work now (since the upstream changes are breaking CI now) and take a more leisurely approach to doing a more complete investigation of what it would take to smoothly handle either Faraday version. |
|
I think rsolr is all set for Faraday 2.x -- we just pass the adapter value through. In order to support both 1.x and 2.x implementations with no downstream impact, we just need to be explicit in falling back to the net-http adapter: Maybe annoying for people who don't want to use that adapter, but 🤷♂️ |
|
Can we just do:
If you use So it doesn't suck for anyone, it just restores the semantics of faraday 1.0 with regard to default adapter, and allows us to be compatible with either faraday 1.x or 2.x (with regard to this anyway -- I think there may be some other faraday 2.x problems. ). |
|
There's another faraday 2.0 problem here: #230 |
|
Looks like the 'support both' PR obviates this one. |
Faraday 2.0 release as of 2022-01-04 requires selecting an adapter, which can break many apps. This restricts the version to use 1.x versions. Error messages look like:
Faraday release https://github.com/lostisland/faraday/releases/tag/v2.0.0