genmgr is a binary used to apply reviewers and update go.mod in a gocloud regen CL once the corresponding genproto PR is submitted.
Install Go
Install Go tools:
go get \ golang.org/x/lint/golint \ golang.org/x/tools/cmd/goimports \ honnef.co/go/tools/cmd/staticcheck \ golang.org/x/review/git-codereview
git-your@email.com=SomeHash....
Note: this may change your ~/.gitconfig
and ~/.gitcookies
.
cd /path/to/internal/gapicgen go run cloud.google.com/go/internal/gapicgen/cmd/genmgr \ --githubAccessToken=11223344556677889900aabbccddeeff11223344 \ --githubName="Jean de Klerk" \ --githubEmail=deklerk@google.com \ --gerritCookieName=o \ --gerritCookieValue=<cookie>
Note: this may leave a lot of docker resources laying around. Use docker system prune
to clean up after runs.
cd /path/to/internal/gapicgen/cmd/genmgr docker build . -t genmgr docker run -t --rm --privileged \ -v `pwd`/../..:/gapicgen \ -e "GITHUB_ACCESS_TOKEN=11223344556677889900aabbccddeeff11223344" \ -e "GITHUB_NAME=\"Jean de Klerk\"" \ -e "GITHUB_EMAIL=deklerk@google.com" \ -e "GERRIT_COOKIE_NAME=o" \ -e "GERRIT_COOKIE_VALUE=<cookie>" \ genmgr