github.com/vipernet-xyz/tm@v0.34.24/scripts/proto-gen.sh (about)

     1  #!/bin/sh
     2  #
     3  # Update the generated code for protocol buffers in the Tendermint repository.
     4  # This must be run from inside a Tendermint working directory.
     5  #
     6  set -euo pipefail
     7  
     8  # Work from the root of the repository.
     9  cd "$(git rev-parse --show-toplevel)"
    10  
    11  # Run inside Docker to install the correct versions of the required tools
    12  # without polluting the local system.
    13  docker run --rm -i -v "$PWD":/w --workdir=/w golang:1.18-alpine sh <<"EOF"
    14  apk add git make
    15  
    16  go install github.com/bufbuild/buf/cmd/buf
    17  go install github.com/gogo/protobuf/protoc-gen-gogofaster@latest
    18  make proto-gen
    19  EOF