Skip to content

Commit

Permalink
rewire all generator import
Browse files Browse the repository at this point in the history
  • Loading branch information
wxue committed Nov 15, 2019
1 parent bd6287e commit 3630eb9
Show file tree
Hide file tree
Showing 29 changed files with 32 additions and 31 deletions.
7 changes: 3 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
module github.com/tron-us/protobuf

require (
github.com/kisielk/errcheck v1.2.0 // indirect
github.com/kisielk/gotool v1.0.0 // indirect
)
go 1.13

require github.com/gogo/protobuf v1.3.1
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
github.com/gogo/protobuf v1.3.1 h1:DqDEcV5aeaTmdFBePNpYsp3FlcVH/2ISVVM9Qf8PSls=
github.com/gogo/protobuf v1.3.1/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o=
github.com/kisielk/errcheck v1.1.0 h1:ZqfnKyx9KGpRcW04j5nnPDgRgoXUeLh2YFBeFzphcA0=
github.com/kisielk/errcheck v1.1.0/go.mod h1:EZBBE59ingxPouuu3KfxchcWSUPOHkagtvWXihfKN4Q=
github.com/kisielk/errcheck v1.2.0 h1:reN85Pxc5larApoH1keMBiu2GWtPqXQ1nc9gx+jOU+E=
Expand Down
2 changes: 1 addition & 1 deletion plugin/compare/compare.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ import (
"github.com/gogo/protobuf/gogoproto"
"github.com/gogo/protobuf/proto"
descriptor "github.com/gogo/protobuf/protoc-gen-gogo/descriptor"
"github.com/gogo/protobuf/protoc-gen-gogo/generator"
"github.com/gogo/protobuf/vanity"
"github.com/tron-us/protobuf/protoc-gen-gogo/generator"
)

type plugin struct {
Expand Down
2 changes: 1 addition & 1 deletion plugin/compare/comparetest.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ package compare
import (
"github.com/gogo/protobuf/gogoproto"
"github.com/gogo/protobuf/plugin/testgen"
"github.com/gogo/protobuf/protoc-gen-gogo/generator"
"github.com/tron-us/protobuf/protoc-gen-gogo/generator"
)

type test struct {
Expand Down
2 changes: 1 addition & 1 deletion plugin/defaultcheck/defaultcheck.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ package defaultcheck
import (
"fmt"
"github.com/gogo/protobuf/gogoproto"
"github.com/gogo/protobuf/protoc-gen-gogo/generator"
"github.com/tron-us/protobuf/protoc-gen-gogo/generator"
"os"
)

Expand Down
2 changes: 1 addition & 1 deletion plugin/description/description.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ import (
"github.com/gogo/protobuf/gogoproto"
"github.com/gogo/protobuf/proto"
descriptor "github.com/gogo/protobuf/protoc-gen-gogo/descriptor"
"github.com/gogo/protobuf/protoc-gen-gogo/generator"
"github.com/tron-us/protobuf/protoc-gen-gogo/generator"
)

type plugin struct {
Expand Down
2 changes: 1 addition & 1 deletion plugin/description/descriptiontest.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ package description
import (
"github.com/gogo/protobuf/gogoproto"
"github.com/gogo/protobuf/plugin/testgen"
"github.com/gogo/protobuf/protoc-gen-gogo/generator"
"github.com/tron-us/protobuf/protoc-gen-gogo/generator"
)

type test struct {
Expand Down
2 changes: 1 addition & 1 deletion plugin/embedcheck/embedcheck.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ import (
"os"

"github.com/gogo/protobuf/gogoproto"
"github.com/gogo/protobuf/protoc-gen-gogo/generator"
"github.com/tron-us/protobuf/protoc-gen-gogo/generator"
)

type plugin struct {
Expand Down
2 changes: 1 addition & 1 deletion plugin/enumstringer/enumstringer.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ package enumstringer

import (
"github.com/gogo/protobuf/gogoproto"
"github.com/gogo/protobuf/protoc-gen-gogo/generator"
"github.com/tron-us/protobuf/protoc-gen-gogo/generator"
)

type enumstringer struct {
Expand Down
2 changes: 1 addition & 1 deletion plugin/equal/equal.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@ import (
"github.com/gogo/protobuf/gogoproto"
"github.com/gogo/protobuf/proto"
descriptor "github.com/gogo/protobuf/protoc-gen-gogo/descriptor"
"github.com/gogo/protobuf/protoc-gen-gogo/generator"
"github.com/gogo/protobuf/vanity"
"github.com/tron-us/protobuf/protoc-gen-gogo/generator"
)

type plugin struct {
Expand Down
2 changes: 1 addition & 1 deletion plugin/equal/equaltest.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ package equal
import (
"github.com/gogo/protobuf/gogoproto"
"github.com/gogo/protobuf/plugin/testgen"
"github.com/gogo/protobuf/protoc-gen-gogo/generator"
"github.com/tron-us/protobuf/protoc-gen-gogo/generator"
)

type test struct {
Expand Down
2 changes: 1 addition & 1 deletion plugin/face/face.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ package face

import (
"github.com/gogo/protobuf/gogoproto"
"github.com/gogo/protobuf/protoc-gen-gogo/generator"
"github.com/tron-us/protobuf/protoc-gen-gogo/generator"
)

type plugin struct {
Expand Down
2 changes: 1 addition & 1 deletion plugin/face/facetest.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ package face
import (
"github.com/gogo/protobuf/gogoproto"
"github.com/gogo/protobuf/plugin/testgen"
"github.com/gogo/protobuf/protoc-gen-gogo/generator"
"github.com/tron-us/protobuf/protoc-gen-gogo/generator"
)

type test struct {
Expand Down
2 changes: 1 addition & 1 deletion plugin/gostring/gostring.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ import (
"strings"

"github.com/gogo/protobuf/gogoproto"
"github.com/gogo/protobuf/protoc-gen-gogo/generator"
"github.com/tron-us/protobuf/protoc-gen-gogo/generator"
)

type gostring struct {
Expand Down
2 changes: 1 addition & 1 deletion plugin/gostring/gostringtest.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ package gostring
import (
"github.com/gogo/protobuf/gogoproto"
"github.com/gogo/protobuf/plugin/testgen"
"github.com/gogo/protobuf/protoc-gen-gogo/generator"
"github.com/tron-us/protobuf/protoc-gen-gogo/generator"
)

type test struct {
Expand Down
2 changes: 1 addition & 1 deletion plugin/marshalto/marshalto.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ import (
"github.com/gogo/protobuf/gogoproto"
"github.com/gogo/protobuf/proto"
descriptor "github.com/gogo/protobuf/protoc-gen-gogo/descriptor"
"github.com/gogo/protobuf/protoc-gen-gogo/generator"
"github.com/gogo/protobuf/vanity"
"github.com/tron-us/protobuf/protoc-gen-gogo/generator"
)

type NumGen interface {
Expand Down
2 changes: 1 addition & 1 deletion plugin/oneofcheck/oneofcheck.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ package oneofcheck
import (
"fmt"
"github.com/gogo/protobuf/gogoproto"
"github.com/gogo/protobuf/protoc-gen-gogo/generator"
"github.com/tron-us/protobuf/protoc-gen-gogo/generator"
"os"
)

Expand Down
2 changes: 1 addition & 1 deletion plugin/populate/populate.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ import (
"github.com/gogo/protobuf/gogoproto"
"github.com/gogo/protobuf/proto"
descriptor "github.com/gogo/protobuf/protoc-gen-gogo/descriptor"
"github.com/gogo/protobuf/protoc-gen-gogo/generator"
"github.com/gogo/protobuf/vanity"
"github.com/tron-us/protobuf/protoc-gen-gogo/generator"
)

type VarGen interface {
Expand Down
2 changes: 1 addition & 1 deletion plugin/size/size.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ import (
"github.com/gogo/protobuf/gogoproto"
"github.com/gogo/protobuf/proto"
descriptor "github.com/gogo/protobuf/protoc-gen-gogo/descriptor"
"github.com/gogo/protobuf/protoc-gen-gogo/generator"
"github.com/gogo/protobuf/vanity"
"github.com/tron-us/protobuf/protoc-gen-gogo/generator"
)

type size struct {
Expand Down
2 changes: 1 addition & 1 deletion plugin/size/sizetest.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ package size
import (
"github.com/gogo/protobuf/gogoproto"
"github.com/gogo/protobuf/plugin/testgen"
"github.com/gogo/protobuf/protoc-gen-gogo/generator"
"github.com/tron-us/protobuf/protoc-gen-gogo/generator"
)

type test struct {
Expand Down
2 changes: 1 addition & 1 deletion plugin/stringer/stringer.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ package stringer

import (
"github.com/gogo/protobuf/gogoproto"
"github.com/gogo/protobuf/protoc-gen-gogo/generator"
"github.com/tron-us/protobuf/protoc-gen-gogo/generator"
"strings"
)

Expand Down
2 changes: 1 addition & 1 deletion plugin/stringer/stringertest.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ package stringer
import (
"github.com/gogo/protobuf/gogoproto"
"github.com/gogo/protobuf/plugin/testgen"
"github.com/gogo/protobuf/protoc-gen-gogo/generator"
"github.com/tron-us/protobuf/protoc-gen-gogo/generator"
)

type test struct {
Expand Down
2 changes: 1 addition & 1 deletion plugin/testgen/testgen.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ package testgen

import (
"github.com/gogo/protobuf/gogoproto"
"github.com/gogo/protobuf/protoc-gen-gogo/generator"
"github.com/tron-us/protobuf/protoc-gen-gogo/generator"
)

type TestPlugin interface {
Expand Down
2 changes: 1 addition & 1 deletion plugin/union/union.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ package union

import (
"github.com/gogo/protobuf/gogoproto"
"github.com/gogo/protobuf/protoc-gen-gogo/generator"
"github.com/tron-us/protobuf/protoc-gen-gogo/generator"
)

type union struct {
Expand Down
2 changes: 1 addition & 1 deletion plugin/union/uniontest.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ package union
import (
"github.com/gogo/protobuf/gogoproto"
"github.com/gogo/protobuf/plugin/testgen"
"github.com/gogo/protobuf/protoc-gen-gogo/generator"
"github.com/tron-us/protobuf/protoc-gen-gogo/generator"
)

type test struct {
Expand Down
2 changes: 1 addition & 1 deletion plugin/unmarshal/unmarshal.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ import (
"github.com/gogo/protobuf/gogoproto"
"github.com/gogo/protobuf/proto"
descriptor "github.com/gogo/protobuf/protoc-gen-gogo/descriptor"
"github.com/gogo/protobuf/protoc-gen-gogo/generator"
"github.com/tron-us/protobuf/protoc-gen-gogo/generator"
)

type unmarshal struct {
Expand Down
2 changes: 1 addition & 1 deletion protoc-gen-gogo/generator/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ import (
"github.com/gogo/protobuf/gogoproto"
"github.com/gogo/protobuf/proto"
descriptor "github.com/gogo/protobuf/protoc-gen-gogo/descriptor"
"github.com/gogo/protobuf/protoc-gen-gogo/generator/internal/remap"
plugin "github.com/gogo/protobuf/protoc-gen-gogo/plugin"
"github.com/tron-us/protobuf/protoc-gen-gogo/generator/internal/remap"
)

// generatedCodeVersion indicates a version of the generated code.
Expand Down
2 changes: 1 addition & 1 deletion protoc-gen-gogo/grpc/grpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import (
"strings"

pb "github.com/gogo/protobuf/protoc-gen-gogo/descriptor"
"github.com/gogo/protobuf/protoc-gen-gogo/generator"
"github.com/tron-us/protobuf/protoc-gen-gogo/generator"
)

// generatedCodeVersion indicates a version of the generated code.
Expand Down
2 changes: 1 addition & 1 deletion vanity/command/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ import (
_ "github.com/gogo/protobuf/plugin/union"
_ "github.com/gogo/protobuf/plugin/unmarshal"
"github.com/gogo/protobuf/proto"
"github.com/gogo/protobuf/protoc-gen-gogo/generator"
_ "github.com/gogo/protobuf/protoc-gen-gogo/grpc"
plugin "github.com/gogo/protobuf/protoc-gen-gogo/plugin"
"github.com/tron-us/protobuf/protoc-gen-gogo/generator"
)

func Read() *plugin.CodeGeneratorRequest {
Expand Down

0 comments on commit 3630eb9

Please sign in to comment.