Closed fsouza closed 6 years ago
@stamblerre let me know if something else makes more sense or if you're already working on this issue :D
Thanks for pointing this out; I don't know how I missed the fact that ParseFile has to be thread-safe, totally my bad. I'll follow up with a fix for making this thread-safe.
This fixes the case where more than one package is returned (for example, when the package contains tests): because pos is set inside ParseFile, it will have a value that is valid only in the last visited package.
This is probably not the correct fix, because the documentation for ParseFile says it should be thread-safe, and the current version is not :(