[roll] Roll fuchsia [golang] Only the go_build() invocation should dep on the library, not the host test

As the dependency on the go_library() is handled by the go_build()
target, there's no need to create a duplicate dependency edge from
the host_test() as well.  Especially since the go_build() target
will restat its output and host_test() cannot.

The result here is that if a change to a file in a go_library()
results in no change to the test binary, the build will not
dirty any downstream targets after ninja restats the test binary
and finds that it's unchanged.

This can truncate the build after only a few actions, instead of
thousands.

This also shifts how deps which are host_test_data() need to be
handled in the case of variant toolchains.  Those may need to
be explicitly included using the base toolchain instead of the
variant toolchain (the implicitly default), if those test deps
are coming through the go_binary() or go_library() targets and
not through the test target itself.

Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/954427
Original-Revision: 56eab360511e99f83547f8d75668f942053aed82
GitOrigin-RevId: 2f8b81a700e7a9fab72e654af2e48f7191a8c35b
Change-Id: I670f2cc1b9c5c297cac0bebe4a118c7ee1addf20
1 file changed
tree: 3d06fcdeaa03b810fb33d409749fce032b77f62e
  1. git-hooks/
  2. infra/
  3. third_party/
  4. cts
  5. firmware
  6. flower
  7. jiri.lock
  8. MILESTONE
  9. minimal
  10. prebuilts
  11. README.md
  12. stem
  13. test_durations
  14. toolchain
README.md

Integration

This repository contains Fuchsia's Global Integration manifest files.

Making changes

All changes should be made to the internal version of this repository. Our infrastructure automatically updates this version when the internal one changes.

Currently all changes must be made by a Google employee. Non-Google employees wishing to make a change can ask for assistance via the IRC channel #fuchsia on Freenode.

Obtaining the source

First install Jiri.

Next run:

$ jiri init
$ jiri import minimal https://fuchsia.googlesource.com/integration
$ jiri update

Third party

Third party projects should have their own subdirectory in ./third_party.