Merge pull request #4188 from estesp/fix-proto-gen

Fix protobuild and CI check protos
This commit is contained in:
Phil Estes 2020-04-14 15:06:50 -04:00 committed by GitHub
commit ccaf35b01c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 7 deletions

View File

@ -162,12 +162,6 @@ jobs:
sudo chmod -R og+r /usr/local/include/google/protobuf/
protoc --version
- name: Go get gogo
env:
GO111MODULE: off
# Get proto files, ignore "package github.com/gogo/googleapis: no Go files in ~/go/src/github.com/gogo/googleapis"
run: go get -u github.com/gogo/googleapis || true
- name: Install dev tools
env:
GO111MODULE: off

View File

@ -20,7 +20,16 @@
#
set -eu -o pipefail
go get -u github.com/stevvooe/protobuild
# install the `protobuild` binary in $GOPATH/bin; requires module-aware install
# to pin dependencies
GO111MODULE=on go get github.com/stevvooe/protobuild
# the following packages need to exist in $GOPATH so we can't use
# go modules-aware mode of `go get` for these includes used during
# proto building
GO111MODULE=off go get -d github.com/gogo/googleapis || true
GO111MODULE=off go get -d github.com/gogo/protobuf || true
go get -u github.com/golangci/golangci-lint/cmd/golangci-lint
go get -u github.com/cpuguy83/go-md2man