commit | b6843aeee2d446d09ff387cef03915eedc6aa08e | [log] [tgz] |
---|---|---|
author | Robert Iannucci <iannucci@chromium.org> | Wed Oct 02 23:49:38 2024 |
committer | LUCI CQ <infra-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Oct 02 23:49:38 2024 |
tree | abb9422bd1225922b4ca00f8a6241e0fb9dc38a0 | |
parent | 53258e31bf80772ba4de77f3b568804d71d166f4 [diff] |
[ftt/rewriter] When rewriting an incompatible convey suite, always pivot context. This prevents code like: Convey(`something`, t, <valid Go but not a func()> { Convey(`else`, func() { ... }) // matches! }) From being converted into (and then not being rendered to the output file at all, because it's syntactically invalid and format.Node fails): Convey(`something`, t, <valid Go but not a func()> { .Run(`else`, func() { ... }) }) But instead into the syntactically valid (but non-compiling): Convey(`something`, t, <valid Go but not a func()> { t.Run(`else`, func() { ... }) }) Which is easy to fix by hand. R=gregorynisbet Change-Id: I265a0a659e444d918016254894e6d9a0191fd14d Reviewed-on: https://chromium-review.googlesource.com/c/infra/luci/luci-go/+/5901865 Auto-Submit: Robbie Iannucci <iannucci@chromium.org> Reviewed-by: Bryan Ni <bniche@google.com> Commit-Queue: Bryan Ni <bniche@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.