github.com/0xKiwi/rules_go@v0.24.3/tests/core/nogo/deps/README.rst (about)

     1  nogo analyzers with dependencies
     2  =============================
     3  
     4  .. _nogo: /go/nogo.rst
     5  .. _go_library: /go/core.rst#_go_library
     6  
     7  Tests to ensure that custom `nogo`_ analyzers that depend on each other are
     8  run in the correct order.
     9  
    10  .. contents::
    11  
    12  deps_test
    13  ---------
    14  Given the following dependency graph of analyzers:
    15  
    16      a ----+
    17            |
    18            v
    19      b --> c --> d
    20  
    21  Where analyzers a, b, c are explicitly depended on by the `nogo`_ rule and d
    22  isn't, verifies that a `go_library`_ build causes both paths in the graph
    23  (a->c->d and b->c->d) to be executed, and that each analyzer runs exactly once.
    24  
    25  Also verify that the diagnostics reported by d are not printed to the build log
    26  since d was not explicitly depended on by the declared `nogo`_ rule.