...

Text file src/edge-infra.dev/hack/build/ci/leaf/pkg/go/README.md

Documentation: edge-infra.dev/hack/build/ci/leaf/pkg/go

     1# `tools/ci/pkg/go`
     2
     3This package parses diffs in `.bzl` files defining `go_repository` rules to determine what Go modules have changed for a build and ensure our code dependent on those modules is rebuilt.
     4
     5## What determines a change
     6
     7There must be a changed `sum` field, as indicated by a pair of lines starting with a corresponding `-` and `+`:
     8
     9```
    10     go_repository(
    11         name = "com_github_pmezard_go_difflib",
    12@@ -1258,8 +1258,8 @@ def go():
    13         build_file_generation = "on",
    14         build_file_proto_mode = "disable_global",
    15         importpath = "gopkg.in/yaml.v3",
    16-        sum = "h1:B0J02caTR6tpSJozBJyiAzT6CtBzjclw4pgm9gg8Ys0=",
    17-        version = "v3.0.0-20190905181640-827449938966",
    18+        sum = "h1:XZx7nhd5GMaZpmDaEHFVafUZC7ya0fuo7cSJ3UCKYmM=",
    19+        version = "v3.0.0-20191120175047-4206685974f2",
    20     )
    21```
    22
    23New `go_repository` rules will be excluded from this because they any new modules brought in via `go_repository` rules should also correspond to new `import` statements in Go code that would be picked up already.

View as plain text