support go modules (#48)

* support go modules
- use Go 1.11 (with and without module support) in CI
- add go.mod and go.sum files
- with modules in Go 1.11, can't rely on GOPATH directory layout, so just copy test.proto into this repo
This commit is contained in:
Joshua Humphries
2018-09-14 20:18:53 -04:00
committed by GitHub
parent 6198551381
commit d4d048fade
5 changed files with 202 additions and 1 deletions

View File

@@ -50,7 +50,7 @@ func TestMain(m *testing.M) {
if err != nil {
panic(err)
}
sourceProtoFiles, err = DescriptorSourceFromProtoFiles(nil, "../../../google.golang.org/grpc/interop/grpc_testing/test.proto")
sourceProtoFiles, err = DescriptorSourceFromProtoFiles(nil, "testing/test.proto")
if err != nil {
panic(err)
}