pearkes / gethub

A utility for cloning and fetching your remote git repositories from GitHub.
MIT License
217 stars 266 forks source link

Error while authorizing #14

Closed aliou closed 10 years ago

aliou commented 10 years ago

I've been trying to use gethub but I keep running into this error when authorizing:

Post https://api.github.com/authorizations: x509: failed to load system roots and no roots provided
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xa code=0x2 addr=0x20 pc=0x41591]

The full error stacktrace is here.

Running go env returns

GOARCH="amd64"
GOBIN=""
GOCHAR="6"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/alioudiallo/.go"
GORACE=""
GOROOT="/usr/local/go"
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
TERM="dumb"
CC="clang"
GOGCCFLAGS="-g -O2 -fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fno-common"
CXX="clang++"
CGO_ENABLED="1"

Not sure if this is relevant, but I also have two factor auth enabled on GitHub.

pearkes commented 10 years ago

Hey! This usually means you might have the wrong build for your arch and OS.

Are you sure you downloaded the darwin/amd64 build?

aliou commented 10 years ago

Ooops that was it -_-'

pearkes commented 10 years ago

Cool, glad it's working for you now. :smile: