Open
Description
The modindex package copied some of the bits that were in go/build. Because there are two copies, the code can get out of sync, if they're not updated together. We should try to break out the shared code into an internal package to remove the copies.
This happened with https://go-review.googlesource.com/c/go/+/502615, for example.