commit | 18882fe277928504c559435f976724816bd7f100 | [log] [tgz] |
---|---|---|
author | Camilo Jacomet <cjacomet@google.com> | Thu Feb 23 22:18:58 2023 |
committer | LUCI CQ <infra-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Feb 23 22:18:58 2023 |
tree | 071807f20828ddaeed17408566f08c7498a66ebd | |
parent | c1f62ae8f8dbe8549859461a3b954c9fa85a81b4 [diff] |
[auth-service]: Validation for permissions.cfg. This validates the basics of our permissions.cfg file, checking that all the required fields are present, have the right format, etc. For now, it just checks that and cyclic dependencies. I still haven't decided if I should extensively check the naming of everything specifically or not I may add that later but this CL was getting long so I figured I would start here. Thank you. 🙏 For context of what I'm trying to reproduce: https://chromium.googlesource.com/infra/luci/luci-py/+/refs/heads/main/appengine/auth_service/realms/permissions.py Bug:1336137 Change-Id: Idb8b0825f76854dddd0fedc251bbff8df217d3a8 Reviewed-on: https://chromium-review.googlesource.com/c/infra/luci/luci-go/+/4283917 Reviewed-by: Dan Le Febvre <dlf@google.com> Commit-Queue: Camilo Jacomet <cjacomet@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.