Replace usages of http with excon#13800
Conversation
31db129 to
6d12771
Compare
b08b43f to
da56526
Compare
91c13bc to
2a6ea8f
Compare
2a6ea8f to
f449633
Compare
f449633 to
4dc191c
Compare
|
@JamieMagee Any chance you can review this? |
There was a problem hiding this comment.
@yeikel This seems ok, but before i approve, did you try regenerating the webmock gem rbi?
There was a problem hiding this comment.
@markhallen Thank you for the feedback and suggestion.
I did try that, but that did not seem to work
Steps to reproduce:
rm sorbet/rbi/shims/http_base64.rbi
bundle exec tapioca gems webmockrbenv exec bundle exec tapioca gems webmock
Requiring all gems to prepare for compiling... Done
Removing RBI files of gems that have been removed:
Nothing to do.
Compiled webmock
force sorbet/rbi/gems/webmock@3.25.1.rbi
Checking generated RBI files... Done
No errors found
All operations performed in working directory.
See:
https://github.com/dependabot/dependabot-core/actions/runs/21155220687/job/60838734319?pr=13800
There was a problem hiding this comment.
@markhallen Do you have any other feedback about this or any other command I should try?
7b41f78 to
d3de0ea
Compare
c00adb9 to
3a2fbcb
Compare
| require "sorbet-runtime" | ||
|
|
There was a problem hiding this comment.
Do we need to add a require "excon" here?
There was a problem hiding this comment.
Why do you think that is? I may be missing something but that class takes Dependabot::Service as a constructor argument, and within service there is another injection, but I see no direct references to excon here. Is this class not tested in any other way?
|
Thanks for doing this! Looks great. We may want to do a follow-up to investigate using |
87727f9 to
4990775
Compare
4990775 to
1dd17b7
Compare
Thanks for the feedback. I wasn’t aware of that helper. If I’m understanding correctly, you’re referring to this change: 1dd17b7 The repo is currently rate-limited, but the tests are currently running on my fork: yeikel#235 Let me know your preference. We can include it here or I can revert it and handle it separately |
|
This looks fine to me. Thanks again. |
What are you trying to accomplish?
Removed the dependency on the
httplibrary and unified the http calls behindexconCloses #10881
Anything you want to highlight for special attention from reviewers?
Sorbet needed a Shim which I documented in the code
How will you know you've accomplished your goal?
httplibrary as a dependencyChecklist