whyrusleeping / gx-go

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

code in ____ expects import ____ #16

Open jbenet opened 7 years ago

jbenet commented 7 years ago
../../../../gx/ipfs/QmcP2JoDv8dijuoXKMqmEK6J8rxzwb93kLdVf47NF7Ch1w/
go-multihash/sum.go:10:2: code in directory /Users/earth/go/src/gx/
ipfs/QmXTYG6Krvhr3zJ2zE6fyxJfrcW9YRYxsWGeTLVF9DHAT8/crypto/sha3 
expects import "golang.org/x/crypto/sha3"

related: https://github.com/tools/godep/issues/156#issuecomment-66387101

Looks like gx-go needs to strip those comments out.

whyrusleeping commented 7 years ago

Yeah, i had code in the gx-go import command that did that, but it was really slow (had to parse the AST for each file twice). I'll try and add it back as an option