commit | 7a7eeddc3a72de374a70268d3d4e257b3e641656 | [log] [tgz] |
---|---|---|
author | Weiwei Lin <weiweilin@google.com> | Tue Feb 21 05:42:17 2023 |
committer | LUCI CQ <infra-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Feb 21 05:42:17 2023 |
tree | 97fa9ea2244c320e42a3cb21605b092002aa61b0 | |
parent | 4a0bb7104954cdbb16a896e665b1bfec42985b33 [diff] |
[milo] stop relying on routes.ts to generate URL As the router will no longer exist after migrating to React Router. Notable changes: 1. Added url_utils.ts that contains most of the URL generation logic. 2. Change all the URL generation to use url_utils.ts instead of routes.ts. 3. Remove the mapping between route name and route path when configuring default tab since route name will no longer exist. Route path will be stored directly. Existing settings will be purged as a result. R=mdraz@google.com, nqmtuan@google.com Bug: 1408955 Change-Id: I84e9251df5a705c37a0056fcc5f46978eca2d9c8 Reviewed-on: https://chromium-review.googlesource.com/c/infra/luci/luci-go/+/4263127 Commit-Queue: Weiwei Lin <weiweilin@google.com> Reviewed-by: Mostafa Draz <mdraz@google.com> Auto-Submit: Weiwei Lin <weiweilin@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.