Fix protobuild and CI check protos

Signed-off-by: Phil Estes <estesp@linux.vnet.ibm.com>
This commit is contained in:
Phil Estes 2020-04-14 14:01:29 -04:00
parent 9bd3bf9bec
commit 041545cd6a
No known key found for this signature in database
GPG Key ID: 0F386284C03A1162
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/ sudo chmod -R og+r /usr/local/include/google/protobuf/
protoc --version 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 - name: Install dev tools
env: env:
GO111MODULE: off GO111MODULE: off

View File

@ -20,7 +20,16 @@
# #
set -eu -o pipefail 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/golangci/golangci-lint/cmd/golangci-lint
go get -u github.com/cpuguy83/go-md2man go get -u github.com/cpuguy83/go-md2man