Skip to content
This repository has been archived by the owner on Sep 9, 2020. It is now read-only.

dep macOS binaries don't use mac DNS #1838

Closed
yolken-stripe opened this issue May 1, 2018 · 3 comments
Closed

dep macOS binaries don't use mac DNS #1838

yolken-stripe opened this issue May 1, 2018 · 3 comments

Comments

@yolken-stripe
Copy link
Contributor

yolken-stripe commented May 1, 2018

Because macOS dep binaries are compiled with CGO_ENABLED=0, they don't use the custom, macOS DNS resolver. This causes problems in environments that depend on the latter for proper DNS resolution.

See golang/go#12524 for more background.

What version of dep are you using (dep version)?

v0.4.1-158-g1f635066

What dep command did you run?

dep ensure

What did you expect to see?

No output (i.e., no errors)

What did you see instead?

Lots of no such host errors when dep tries to hit our company's internal git repository. These resolve correctly when using curl or other command-line tools.

@evanj
Copy link

evanj commented May 2, 2018

Is this why the binary for dep v0.4.1 for mac was re-built and uploaded? My version of dep version now reports the following. Note that the build date is substantially after the release date. We noticed this since the hash changed, and we verify the hash when downloading development tools:

 version     : v0.4.1-161-g8b166f24
 build date  : 2018-05-02
 git hash    : 8b166f24
 go version  : go1.10
 go compiler : gc
 platform    : darwin/amd64
 features    : ImportDuringSolve=false

@yolken-stripe
Copy link
Contributor Author

@evanj Yes, I believe that when this was merged, the binaries were re-uploaded to pick up the OS X CGO changes.

@sdboyer
Copy link
Member

sdboyer commented Sep 6, 2018

done with the v0.5.0 release

@sdboyer sdboyer closed this as completed Sep 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants