commit | 9ad3515b36389de67d8b9e184c2a81560394f1d5 | [log] [tgz] |
---|---|---|
author | Haiyang Pan <hypan@google.com> | Wed May 01 01:00:01 2024 |
committer | LUCI CQ <infra-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed May 01 01:00:01 2024 |
tree | b2714c3be41f0a269f2182fd7cef9199cf3e9eb1 | |
parent | 7a88e9060ea59a502b3f3c3ae04f6c0c6a5ba067 [diff] |
[common] Add a getter for Mask.children Use "Children()" as suggested in https://go.dev/doc/effective_go#Getters Though the current Mask provide a good support for a path like "a.b.c", it lacks of the ability to iterate all the path segments from the current node, which is needed when a method reads all the paths and throws errors for any unsupported path. Bug: 337058844 Change-Id: I28f9914e4a47adb7d42d261dc9b5410cd70346a0 Reviewed-on: https://chromium-review.googlesource.com/c/infra/luci/luci-go/+/5502888 Commit-Queue: Haiyang Pan <hypan@google.com> Reviewed-by: Yiwei Zhang <yiwzhang@google.com>
LUCI Go code is meant to be worked on from an Chromium infra.git checkout, which enforces packages versions and Go toolchain version. First get fetch via depot_tools.git then run:
fetch infra cd infra/go eval `./env.py` cd src/go.chromium.org/luci
It is now possible to directly install tools with go install:
go install go.chromium.org/luci/auth/client/cmd/...@latest go install go.chromium.org/luci/buildbucket/cmd/...@latest go install go.chromium.org/luci/cipd/client/cmd/...@latest go install go.chromium.org/luci/client/cmd/...@latest go install go.chromium.org/luci/cv/cmd/...@latest go install go.chromium.org/luci/gce/cmd/...@latest go install go.chromium.org/luci/grpc/cmd/...@latest go install go.chromium.org/luci/logdog/client/cmd/...@latest go install go.chromium.org/luci/luci_notify/cmd/...@latest go install go.chromium.org/luci/lucicfg/cmd/...@latest go install go.chromium.org/luci/luciexe/legacy/cmd/...@latest go install go.chromium.org/luci/mailer/cmd/...@latest go install go.chromium.org/luci/mmutex/cmd/...@latest go install go.chromium.org/luci/resultdb/cmd/...@latest go install go.chromium.org/luci/server/cmd/...@latest go install go.chromium.org/luci/swarming/cmd/...@latest go install go.chromium.org/luci/tokenserver/cmd/...@latest go install go.chromium.org/luci/tools/cmd/...@latest
Contributing uses the same flow as Chromium contributions.