You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

6 lines
311 B

  1. #! /bin/bash
  2. protoc --gogo_out=. -I $GOPATH/src/ -I . -I $GOPATH/src/github.com/gogo/protobuf/protobuf merkle.proto
  3. echo "--> adding nolint declarations to protobuf generated files"
  4. awk '/package merkle/ { print "//nolint: gas"; print; next }1' merkle.pb.go > merkle.pb.go.new
  5. mv merkle.pb.go.new merkle.pb.go