Seeing paths that begin with "_" in the go list output means those modules are not in your GOPATH. In my case, I was collecting list of modules in a subshell (i.e. $(shell)) which doesn't have my GOPATH. If I run my go list command via backtick then it can use the global GOPATH define and works fine.
On Tuesday, January 8, 2019 at 12:17:01 PM UTC-8, tatsuy...@nftlearning.com wrote: > > I don't know it helps as I'm on zshell. I replaced > `GOPATH=~/works/golang` with `export GOPATH=~/works/golang`. then, it fixed. > > > > Before > > % go list ./server/... > > _/Users/myuser/works/golang/src/mattermost-plugin-dialect/src/server > > > After > % go list ./server/... > > mattermost-plugin-dialect/src/server > > > On Wednesday, 21 November 2018 21:09:29 UTC+1, ipob...@kdu.cl wrote: >> >> Hi, I have the same problem, but I just want to scan my custom packages, >> when I do the go list. / ... it returns the correct routes, but with the >> underscore at the beginning of the routes, it is worth noting that the >> project does not have it inside the $ GOPATH (my $ GOPATH is in $ HOME / go) >> >> El jueves, 1 de marzo de 2018, 14:22:43 (UTC-3), Michel Hollands escribió: >>> >>> Hello, >>> >>> When running go list on Ubuntu the results are weird: >>> >>> michel@michel-VirtualBox:~/git/grpcurl$ go list . >>> _/home/michel/git/grpcurl >>> michel@michel-VirtualBox:~/git/grpcurl$ >>> >>> Running the same on the Mac returns just grpcurl, which is the correct >>> package. >>> >>> The Go version is: >>> >>> go version go1.10 linux/amd64 >>> >>> The Ubuntu is 16.04.4 LTS which was freshly installed. >>> >>> Any ideas about what could be wrong? >>> >>> Thanks in advance, >>> >>> Michel >>> >>> -- 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 on the web visit https://groups.google.com/d/msgid/golang-nuts/44e92256-0ae8-41a1-81a1-3651d8d68797%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.