Closed
Description
On #17832 @wendigo notes that a go test for package p
cannot load a plugin that imports package p
without an error message about incorrect versions. This example is provided:
https://github.com/wendigo/go-plugin-33161
This is caused by the go tool rebuilding a package to include the test files, making the package in the test program incompatible with the equivalent package in the plugin.
I don't think this necessarily needs to work, it is entirely possible to do the plugin work from an external test from a package p_test
. But maybe we could use a more helpful error message.
Any suggestions?