apns4erl icon indicating copy to clipboard operation
apns4erl copied to clipboard

Updated gun to 2.0.0

Open HernanRivasAcosta opened this issue 2 years ago • 11 comments

Based on the work by @jainygaurav on #246 but updated to wok on the newly released 2.0.0 version of cowboy.

HernanRivasAcosta avatar Feb 09 '23 19:02 HernanRivasAcosta

To follow

Neustradamus avatar Feb 09 '23 20:02 Neustradamus

I allowed CI to run… but now it fails because Gun doesn't work with old erlangs.

elbrujohalcon avatar Feb 10 '23 06:02 elbrujohalcon

Because of the fixes to crypto made in Erlang 25.1 I can not make this work on anything earlier than that version.

@ferigis that might mean we should bump this to a new major version since it loses compatibility with the all but the latest Erlang versions.

HernanRivasAcosta avatar Feb 12 '23 14:02 HernanRivasAcosta

@ferigis I'm tempted to merge this PR and increase the version. I've been using this branch for a while now and I can confirm it works perfectly fine, even if the tests are not passing.

What do you think?

HernanRivasAcosta avatar Mar 07 '23 10:03 HernanRivasAcosta

hi @HernanRivasAcosta, sorry for the late response.

Yes, lets bump to a major version.

Thanks

ferigis avatar Mar 07 '23 13:03 ferigis

Please use Gun 2.0.1 so you get a Cowlib version that's compatible with OTP-26 otherwise you'll get a compilation error.

essen avatar May 02 '23 11:05 essen

Hello @elbrujohalcon, any plan to approve and merge this PR?

dsrosario avatar Sep 22 '23 12:09 dsrosario

@dsrosario: Not on my side. You should ask @ferigis or @HernanRivasAcosta :)

elbrujohalcon avatar Sep 22 '23 12:09 elbrujohalcon

But is there any intension to update the CI to check with latest OTP version (like 26, 25 and 24) instead of the old one's? Maybe some guidance here regarding what Erlang versions to support may help.

gun 2.0.0 is not compatible with OTP20

===> Compiling gun
_build/default/lib/gun/src/gun_socks.erl:142: Warning: a term is constructed, but never used
_build/default/lib/gun/src/gun_socks.erl:147: Warning: a term is constructed, but never used

===> Compiling _build/default/lib/gun/src/gun_http2.erl failed
_build/default/lib/gun/src/gun_http2.erl:922: illegal guard expression

dsrosario avatar Sep 22 '23 13:09 dsrosario

Yeah, usually what we do is to support latest 3 versions. In this case 24, 25 and 26. But, again, I defer to @ferigis and @HernanRivasAcosta for decisions like that on this repo. They're the maintainers and the repo admins.

elbrujohalcon avatar Sep 22 '23 13:09 elbrujohalcon

@ferigis @HernanRivasAcosta any news?

dsrosario avatar Oct 04 '23 07:10 dsrosario

This PR is obsolete. #258 bumped gun to 2.1.0

dsrosario avatar Jul 31 '24 13:07 dsrosario