When calling the gopackagesdriver on a non-external test which depends on a go_library that it tests, the tested go_library's source files are not included in the GoFiles in the response.
This causes tools which use analysis on these files to report undefined symbols where the symbols are defined in the tested go_library's source file
config_test.go:18:12: undefined: AuditOpts
testifylint: analysis skipped due to errors in package
I have a fix for this in my fork which includes the package local sources in the _go_pkg_info call for non-external tests, in a very similar way to how they are exposed to the internal go_library rule for the go_test.
When calling the gopackagesdriver on a non-external test which depends on a go_library that it tests, the tested go_library's source files are not included in the GoFiles in the response.
This causes tools which use analysis on these files to report undefined symbols where the symbols are defined in the tested go_library's source file
I have a fix for this in my fork which includes the package local sources in the
_go_pkg_infocall for non-external tests, in a very similar way to how they are exposed to the internalgo_libraryrule for thego_test.