-
Notifications
You must be signed in to change notification settings - Fork 868
*: drop goproxy dependency #1799
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
base: main
Are you sure you want to change the base?
Conversation
239a04c to
c71304b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR refactors the test infrastructure by replacing the external github.com/elazarl/goproxy dependency with a custom minimal HTTP/HTTPS proxy implementation using only Go's standard library. This aligns with the library's goal of minimizing dependencies, as the proxy was only used in tests.
Key Changes:
- Implemented a custom
testProxytype with HTTP and HTTPS (CONNECT) proxying capabilities - Removed the
github.com/elazarl/goproxydependency from go.mod and go.sum - Unified the
setupHTTPProxyandsetupHTTPSProxyfunctions into a singlenewTestProxyconstructor
Reviewed changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| plumbing/transport/http/proxy_test.go | Replaced goproxy dependency with custom testProxy implementation that handles both HTTP and HTTPS (CONNECT) proxy requests |
| go.mod | Removed github.com/elazarl/goproxy dependency |
| go.sum | Removed goproxy dependency checksums |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
8d0073a to
77b773f
Compare
|
@ferhatelmas overall LGTM. Please rebase. Relates to #1413. |
Assuming go-git is a library and so it's better to use minimal dependencies. github.com/elazarl/goproxy is only used by tests, adding a tiny implementation enables us to drop it. Signed-off-by: ferhat elmas <elmas.ferhat@gmail.com>
|
@pjbgf rebased |
Assuming go-git is a library and so it's better to use minimal dependencies. github.com/elazarl/goproxy is only used by tests, adding a tiny implementation enables us to drop it.