whyrusleeping / gx-go

gx subtool for golang
MIT License
80 stars 28 forks source link

Importing packages with no Go at their root breaks #28

Open paralin opened 6 years ago

paralin commented 6 years ago

This is the same behavior of go get on the root of a repo with no code at the root.

ERROR: Error: go get failed: can't load package: package github.com/btcsuite/goleveldb: no Go files in /ho me/paralin/Documents/goworkspace/src/github.com/btcsuite/goleveldb

joosep-wm commented 6 years ago

I go to the same issue when importing gx-go import github.com/libp2p/go-libp2p-host. The error came from one of the dependencies ERROR: Error: go get failed: can't load package: package golang.org/x/crypto: no Go files in /Users/joosep/Go/src/golang.org/x/crypto.

Is there a workaround for this issue?

paralin commented 6 years ago

@joosep-wm I don't use gx, so that's one workaround I guess :)