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

vault resolves incorrectly DNS names on OSX #9658

Closed
aiwaniuk opened this issue Aug 4, 2020 · 1 comment
Closed

vault resolves incorrectly DNS names on OSX #9658

aiwaniuk opened this issue Aug 4, 2020 · 1 comment

Comments

@aiwaniuk
Copy link

aiwaniuk commented Aug 4, 2020

This is the same issue like here, but for vault: kubernetes/kubernetes#23130

When I forced build to use CGO_ENABLED=1 then everything works as expected

diff --git a/scripts/build.sh b/scripts/build.sh
index ef7e90358..942b8a46b 100755
--- a/scripts/build.sh
+++ b/scripts/build.sh
@@ -52,6 +52,7 @@ mkdir -p bin/
 # If GOX_PARALLEL_BUILDS is set, it will be used to add a "-parallel=${GOX_PARALLEL_BUILDS}" gox parameter
 echo "==> Building..."
 gox \
+    -cgo \
     -osarch="${XC_OSARCH}" \
     -gcflags "${GCFLAGS}" \
     -ldflags "${LD_FLAGS}-X github.com/hashicorp/vault/sdk/version.GitCommit='${GIT_COMMIT}${GIT_DIRTY}'" \

Could you build vault binary for OSX with CGO_ENABLED=1 ?

@ncabatoff
Copy link
Collaborator

Thanks for identifying the dup @anth0d, closing in favour of #12012.

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

No branches or pull requests

3 participants