keybase / client

Keybase Go Library, Client, Service, OS X, iOS, Android, Electron
BSD 3-Clause "New" or "Revised" License
8.88k stars 1.23k forks source link

(Windows) Unable to build with 2FA enabled. #354

Closed zQueal closed 9 years ago

zQueal commented 9 years ago
λ go version
go version go1.4rc2 windows/amd64
λ uname -a
MINGW32_NT-6.1 XANZA-PC 1.0.12(0.46/3/2) 2012-07-05 14:56 i686 unknown

It should be known that I've never compiled a Go application before, but I did some extensive Googling before I attempted. I've appropriately set my $GOPATH and am attempting to go get followed by go install (I assume).

λ echo %GOPATH%
C:\Users\zqueal\gopath
echo %PATH% | grep gopath
λ C:\Users\zqueal\gopath\bin

First issue I ran into was I was unable to authenticate with Github because I had a 2FA key enabled. Instead of disabling 2FA I simply used a personal access token--this seemed to work which lead to the following error messages:

C:\Users\zqueal\Desktop\go\client
λ go get
Username for 'https://github.com': zqueal
Password for 'https://zqueal@github.com':
go: missing Mercurial command. See http://golang.org/s/gogetcmd
package github.com/keybase/client/go/engine
        imports github.com/agl/ed25519
        imports github.com/keybase/client/go/libkb
        imports github.com/hashicorp/golang-lru
        imports github.com/keybase/client/protocol/go
        imports github.com/keybase/go-jsonw
        imports github.com/keybase/go-triplesec
        imports code.google.com/p/go.crypto/salsa20: exec: "hg": executable file not found in %PATH%
package github.com/keybase/client/go/engine
        imports github.com/agl/ed25519
        imports github.com/keybase/client/go/libkb
        imports github.com/hashicorp/golang-lru
        imports github.com/keybase/client/protocol/go
        imports github.com/keybase/go-jsonw
        imports github.com/keybase/go-triplesec
        imports code.google.com/p/go.crypto/scrypt
        imports code.google.com/p/go.crypto/scrypt
        imports code.google.com/p/go.crypto/scrypt: cannot find package "code.google.com/p/go.crypto/scrypt" in any of:
        C:\Go\src\code.google.com\p\go.crypto\scrypt (from $GOROOT)
        C:\Users\zqueal\gopath\src\code.google.com\p\go.crypto\scrypt (from $GOPATH)
package github.com/keybase/client/go/engine
        imports github.com/agl/ed25519
        imports github.com/keybase/client/go/libkb
        imports github.com/hashicorp/golang-lru
        imports github.com/keybase/client/protocol/go
        imports github.com/keybase/go-jsonw
        imports github.com/keybase/go-triplesec
        imports code.google.com/p/go.crypto/scrypt
        imports code.google.com/p/go.crypto/twofish
        imports code.google.com/p/go.crypto/twofish
        imports code.google.com/p/go.crypto/twofish: cannot find package "code.google.com/p/go.crypto/twofish" in any of:
        C:\Go\src\code.google.com\p\go.crypto\twofish (from $GOROOT)
        C:\Users\zqueal\gopath\src\code.google.com\p\go.crypto\twofish (from $GOPATH)

Any guesses?

akalin commented 9 years ago

Looks like it's failing just because you don't have Mercurial (hg) installed.