I've encountered similar behavior with testdata directories within GOPATH,
when not in module-aware mode.

I found this thread while searching for answers, so I'm linking the issue I 
just
created in case anyone else runs into the same bug:
https://github.com/golang/go/issues/28155

On Wednesday, April 25, 2018 at 4:21:43 PM UTC+1, run...@uber.com wrote:
>
> Not accurate. 
>
> $ cat ~/code/scratch/repro-underscore-issue.sh
> echo "GOPATH: $GOPATH"
> mkdir -p $GOPATH/src/github.com/testcase/testdata
> echo "package testdata" > $GOPATH/src/
> github.com/testcase/testdata/testdata.go
> echo "" >> $GOPATH/src/github.com/testcase/testdata/testdata.go
> cd $GOPATH/src/github.com/testcase/testdata
> echo "Running go list ./..."
> go list ./...
>
> $ ~/code/scratch/repro-underscore-issue.sh
> GOPATH: /Users/prungta/code/gocode
> Running go list ./...
> _/Users/prungta/code/gocode/src/github.com/testcase/testdata
>
>
> Should this be a bug report? 
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to