Hello, according to "The Go Programming Lanuage" (Alan A. A. Donovan/Brian W. Kernighan) page 291 the "GOPATH" should have a subdirectory named "src".
However that dir is not present on my system: $ ls $(go env GOPATH) bin pkg When doing a type check with the "go/types" package and the default importer (importer.Default()) it will also search the imported package inside GOPATH/src: could not import github.com/Code-Hex/Neo-cowsay/v2 (can't find import: "github.com/Code-Hex/Neo-cowsay/v2": cannot find package "github.com/Code-Hex/Neo-cowsay/v2" in any of: /usr/lib/go/src/github.com/Code-Hex/Neo-cowsay/v2 (from $GOROOT) /home/bf/go/src/github.com/Code-Hex/Neo-cowsay/v2 (from $GOPATH)) I installed the external package with "go get ..." and I am able to build the module that uses the external package. Does anyone know how it can happen that $GOPATH/src does not exist? Regards Bjoern -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/golang-nuts/96b1e8c0-a280-4f55-815d-acff4985fb96n%40googlegroups.com.