Kaynağa Gözat

fix import path

fixes #270
Nate Finch 9 yıl önce
ebeveyn
işleme
f0b293ef37
2 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  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) {