tree: dd57f58271e8fad403f16f2cb58d8324662ac10e [path history] [tgz]
  1. main.go
  2. README.md
internal/gapicgen/cmd/genlocal/README.md

genlocal

genlocal is a binary for generating gapics locally. It may be used to test out new changes, test the generation of a new library, test new generator tweaks, run generators against googleapis-private, and various other local tasks.

Required tools

  1. Install docker

  2. Install protoc

  3. Install Go

  4. Install python3, pip3

  5. Install virtualenv pip3 install virtualenv

  6. Install Go tools:

    go get \
        github.com/golang/protobuf/protoc-gen-go \
        golang.org/x/lint/golint \
        golang.org/x/tools/cmd/goimports \
        honnef.co/go/tools/cmd/staticcheck \
        golang.org/x/review/git-codereview \
        github.com/googleapis/gapic-generator-go/cmd/protoc-gen-go_gapic
    

Running

cd /path/to/internal/gapicgen
go run cloud.google.com/go/internal/gapicgen/cmd/genlocal