Skip to content

Conversation

@implausible
Copy link
Member

@implausible implausible commented Jan 24, 2017

To get proxy support into NodeGit, we will need to get libgit configured to use libcurl. To start, we will just try to build nodegit against libcurl using the -lcurl flag.

We will also expose and handle proxy_options, the goal of this PR is to get proxy support in full across all systems.

This should address #489

@implausible
Copy link
Member Author

Testing this is proving to be quite difficult. Issues are that we want to assert that we (@cbargren in da house) are going over a proxy. We need to figure out a way to create a proxy on the fly on our test boxes that we can tell nodegit to use that also can be checked at the end of the test if it was hit or not... we've looked through several libraries today and so far nothing is working for us :(

@implausible implausible force-pushed the feature/enable-curl-support branch from 56ea77f to 308f0ae Compare January 26, 2017 21:51
@implausible
Copy link
Member Author

Getting proxy options fully tested is going to be very difficult. For now, this passes all of the test cases, and does not worsen NodeGit. Had a discussion with @johnhaley81, we'll come back for tests on this when we have a good framework for an on-the-fly forward proxy.

@maxkorp
Copy link
Collaborator

maxkorp commented Jan 30, 2017

Probably a custom proxy through express or something would be easiest.

@maxkorp
Copy link
Collaborator

maxkorp commented Jan 30, 2017

Looking at this now.

@johnhaley81
Copy link
Collaborator

Tested this in a proxied environment and confirmed it worked. Thanks @implausible.

@johnhaley81 johnhaley81 merged commit 4a93dbf into nodegit:master Feb 6, 2017
@johnhaley81 johnhaley81 deleted the feature/enable-curl-support branch February 6, 2017 16:27
@saper
Copy link
Collaborator

saper commented Feb 26, 2017

this breaks my FreeBSD build since it cannot find <curl/curl.h> (It is in /usr/local/include/curl/curl.h).

This change should use curl-config to figure out compiler and linking options to get it working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants