Exclude libraries under test when linking test binaries (#1429)

go_test targets include internal and external archives. The internal
archive has the same package path as the library under test. If the
external archive depends transitively on the library under test, we
need to exclude the library at link time in favor of the internal
archive.
4 files changed