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
cmd/go: Sorry, host unauthorized. #20247
Comments
Can you at least show us the invocation (optionally mildly redacted) of the go command that you are using? And also the output if you run it with the |
UPDATE: I am using the go-sqlite3 lib |
I am trying to, the errors in the code have changed when I set GOARCH to 386 |
I think this is a problem with the go-sqlite3 lib which uses CGO |
Here is the output when I type go build -x (with goarch set to amd64)
And here is the output with GOARCH set to 386
|
I don't see the host unauthorized message in the output you provided. Please provide the full output for a single run with no GOARCH set, including the error message. You can redact individual bits (like the hardware id, if that's what it is), but the more complete a picture we have, the better we can help. I've never seen a "host unauthorized" message before. |
The host unauthorized part comes when you run the binary |
In go 1.8 the message was Killed:9 |
export GOARCH="" does not change the goarch when I run go env |
Maybe you have some antivirus software on your machine preventing which binaries you're allowed to run. This might also be an sqlite package problem. In any case, I don't see a Go issue here. Let's move debugging to the mailing list. See https://golang.org/wiki/Questions. |
Thank you guys so much |
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?1.8.1
What operating system and processor architecture are you using (
go env
)?GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/liam/go"
GORACE=""
GOROOT="/usr/local/Cellar/go/1.8.1/libexec"
GOTOOLDIR="/usr/local/Cellar/go/1.8.1/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/hq/v7wjj6rx23ncpg2bp_3zrms80000gn/T/go-build210902941=/tmp/go-build -gno-record-gcc-switches -fno-common"
CXX="clang++"
CGO_ENABLED="1"
PKG_CONFIG="pkg-config"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
What did you do?
Compiled a binary
The error is on a program I am not allowed to share unfortunately
What did you expect to see?
I don't know since I cannot compile the binary
What did you see instead?
Sorry, host (HARDWAREIDOFSOMESORT) unauthorized.
I am not sure if I should post the hardware Id for security reasons. I installed golang via brew
My OS is a Macbook Pro 13inch.(on apple hardware)
The problem might be with my goarch, but I am not sure, and I do not know how to set it to the right value.
The text was updated successfully, but these errors were encountered: