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

Can't interact with GitHub Enterprise installations over macOS VPN #1630

Open
aroben opened this issue Dec 1, 2017 · 1 comment
Open

Can't interact with GitHub Enterprise installations over macOS VPN #1630

aroben opened this issue Dec 1, 2017 · 1 comment

Comments

@aroben
Copy link

aroben commented Dec 1, 2017

If your GitHub Enterprise instance is only accessible via VPN, you get this error on macOS:

$ GITHUB_HOST=github.my-company.com hub clone owner/repo
Get https://github.my-company.com/api/v3/repos/owner/repo: dial tcp: lookup github.my-company.com on 10.0.1.1:53: no such host

It looks like this is a problem with Go's DNS resolver. See hashicorp/terraform#3536 and golang/go#12524.

It looks like the fix is to build with CGO_ENABLED=1 on Darwin. That causes the native DNS resolver to be used, which can correctly handle VPN.

Would you be willing to use CGO for Darwin?

@mislav
Copy link
Owner

mislav commented Jan 29, 2018

Thank you for reporting. Hub release process is currently set up to cross-compile and auto-publish binaries on each tagged release. If we want to use CGO_ENABLED, I don't think I would be able to publish Darwin binaries from Linux anymore. 🤔

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

No branches or pull requests

2 participants