瀏覽代碼

fix import path

fixes #270
Nate Finch 9 年之前
父節點
當前提交
f0b293ef37
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      descriptor/descriptor.go
  2. 1 1
      descriptor/descriptor_test.go

+ 1 - 1
descriptor/descriptor.go

@@ -43,7 +43,7 @@ import (
 	"io/ioutil"
 
 	"github.com/golang/protobuf/proto"
-	protobuf "google.golang.org/genproto/protobuf"
+	protobuf "github.com/golang/protobuf/protoc-gen-go/descriptor"
 )
 
 // extractFile extracts a FileDescriptorProto from a gzip'd buffer.

+ 1 - 1
descriptor/descriptor_test.go

@@ -6,7 +6,7 @@ import (
 
 	"github.com/golang/protobuf/descriptor"
 	tpb "github.com/golang/protobuf/proto/testdata"
-	protobuf "google.golang.org/genproto/protobuf"
+	protobuf "github.com/golang/protobuf/protoc-gen-go/descriptor"
 )
 
 func TestMessage(t *testing.T) {