golang/dep#351 demonstrated how parsing in files with leading underscores leads to all manner of problems. In that case, a _gen.go file from github.com/clipperhouse/gen ended up tricking our package parser into thinking that it was all a package main.
The toolchain doesn't look at these files by default when compiling, and we shouldn't analyze them either.
golang/dep#351 demonstrated how parsing in files with leading underscores leads to all manner of problems. In that case, a
_gen.go
file fromgithub.com/clipperhouse/gen
ended up tricking our package parser into thinking that it was all apackage main
.The toolchain doesn't look at these files by default when compiling, and we shouldn't analyze them either.