whyrusleeping / gx

A package management tool
MIT License
1.88k stars 110 forks source link

Running on Windows gives a git error for crypto #123

Closed CMCDragonkai closed 7 years ago

CMCDragonkai commented 7 years ago

Here:

> go get -u github.com/whyrusleeping/gx
# cd C:\Users\CMCDragonkai\.go\src\golang.org\x\crypto; git pull --ff-only
fatal: Not a git repository (or any of the parent directories): .git
package golang.org/x/crypto/blake2b: exit status 128
package golang.org/x/crypto/blake2s: cannot find package "golang.org/x/crypto/blake2s" in any of:
        C:\tools\go\src\golang.org\x\crypto\blake2s (from $GOROOT)
        C:\Users\CMCDragonkai\.go\src\golang.org\x\crypto\blake2s (from $GOPATH)
package golang.org/x/crypto/sha3: cannot find package "golang.org/x/crypto/sha3" in any of:
        C:\tools\go\src\golang.org\x\crypto\sha3 (from $GOROOT)
        C:\Users\CMCDragonkai\.go\src\golang.org\x\crypto\sha3 (from $GOPATH)

The final bin isn't built either.

There's something wrong with ~\.go\src\golang.org\x\crypto. It's empty except just the .git folder, and that .git folder is corrupted because git thinks it's not a git repository.

CMCDragonkai commented 7 years ago

For some reason it just started working after I deleted everything in ~/.go.