Skip to content

Add http proxy support#808

Merged
carlosmn merged 2 commits into
libgit2:masterfrom
carbonin:add_proxy_support
Jun 24, 2020
Merged

Add http proxy support#808
carlosmn merged 2 commits into
libgit2:masterfrom
carbonin:add_proxy_support

Conversation

@carbonin

@carbonin carbonin commented Aug 5, 2019

Copy link
Copy Markdown
Contributor

Add proxy support for clone and remote operations.
This utilizes the non-libcurl proxy support added to libgit2 in libgit2/libgit2#4870

Hoping this will address #440

Looking for input on the API (Should this live in an option?) and help with how I should write tests for this.

cc @Fryguy @NickLaMuro
Also @tenderlove saw you in some commits 👋

@carbonin

carbonin commented Aug 5, 2019

Copy link
Copy Markdown
Contributor Author

Sorry for the extra noise, but I force-pushed to my branch to fix up the documentation I wrote (https proxies are not supported by libgit2), but the PR didn't update ... not sure what that's about.

@carbonin

carbonin commented Aug 7, 2019

Copy link
Copy Markdown
Contributor Author

@carlosmn, not sure if you're the right person to ping here, but could you take a look at this?

Thanks!

@jfine

jfine commented Sep 16, 2019

Copy link
Copy Markdown

Would be great if this 🚢'd! We're using environment variable in the meantime.

@Fryguy

Fryguy commented Mar 13, 2020

Copy link
Copy Markdown

@carlosmn We could really use this PR merged if you could review.

@synthead

synthead commented May 5, 2020

Copy link
Copy Markdown

Could we get some 👀 on this one? It would be great to have this merged! ❤️

@Magisus

Magisus commented Jun 9, 2020

Copy link
Copy Markdown

I'm also interested in seeing this go in, hoping to pick it up for use in r10k. We've been having trouble getting proxies working right since the libgit2 update dropping curl, and I think this might be the missing link for us, that's cleaner than what we used to do anyway.

@ethomson

Copy link
Copy Markdown
Member

also cc @pks-t

@Magisus

Magisus commented Jun 15, 2020

Copy link
Copy Markdown

The behavior we were using before in r10k relied on libcurl checking environment variables for proxies by default. The new implementation in libgit no longer does this; instead you have to configure fetch_opts.proxy_opts.type = GIT_PROXY_AUTO.

We can probably use what this PR adds with some changes to our proxy handling, but I was curious if anyone else wanted to use environment variables to configure proxies? If so, it might be worth also adding that option. I might look into it, especially if this route doesn't wind up being feasible for us.

@carlosmn

Copy link
Copy Markdown
Member

Looks good thanks. Potentially we could see an :auto value in order to set to the _AUTO but that can be part of some later change.

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