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

Make :hackney an optional dependency #231

Closed
wants to merge 1 commit into from

Conversation

aptinio
Copy link

@aptinio aptinio commented Oct 1, 2020

This allows those who don't need to post to the coveralls.io service to reduce their dependencies. If they do try to run a Mix task that posts to coveralls.io, they are instructed to install :hackney and recompile ExCoveralls.

@coveralls
Copy link

coveralls commented Oct 1, 2020

Coverage Status

Coverage decreased (-0.2%) to 90.347% when pulling 5e6a0ea on aptinio:optional-hackney into d1b6b35 on parroty:master.

@dmorneau
Copy link

+1, Hackney brings in a whole slew of Erlang dependencies (certifi, idna, unicode_util_compat, metrics, mimerl, parse_trans, ssl_verify_fun).

Another solution would be to post results with httpc, and support certifi or castore as optional deps for the certs. I might be able to work on this if there's interest in merging a PR.

@whatyouhide
Copy link
Contributor

@parroty hey there! This is a good change IMO. Anything I can help with to get this over the finish line? Btw, would love to help out more with excoveralls, so if you need a hand feel free to shoot me an email (my email is on my GitHub profile). Cheers!

@aptinio
Copy link
Author

aptinio commented Oct 14, 2022

@parroty, I changed the implementation so those who need to post to the coveralls.io service, only need to install :hackney and no longer need to recompile ExCoveralls, at the expense of calling Code.ensure_loaded?/1 at runtime.

It also simplifies the patch :-)

@aptinio
Copy link
Author

aptinio commented Nov 8, 2022

@parroty, I changed back the implementation to avoid compile warnings, but made it easier to review. If there's anything you need changed to get this merged, please let me know. Thanks! :-)

@tielur
Copy link

tielur commented Mar 29, 2023

Any progress on this? Ran into this today while installing another dependency that wants to use a newer version of certifi

@parroty
Copy link
Owner

parroty commented Apr 2, 2023

Thanks for the follow up. Sorry about late responses 🙇 .

If they do try to run a Mix task that posts to coveralls.io, they are instructed to install :hackney

I am somewhat concerned about the behavioral change.

Another solution would be to post results with httpc, and support certifi or castore as optional deps for the certs. I might be able to work on this if there's interest in merging a PR.

This direction would be less friction approach, but haven't been able to dig deeper.

@albertored
Copy link
Contributor

@parroty I thinks this can be closed since #311 has been merged

@parroty
Copy link
Owner

parroty commented Aug 9, 2023

Thank you 🙇 . I'm closing this issue.

@parroty parroty closed this Aug 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants