Skip to content

Commit

Permalink
Move GAP to github.com import path.
Browse files Browse the repository at this point in the history
  • Loading branch information
alecthomas authored and lyonlai committed Oct 27, 2020
1 parent dc2dc7b commit a096039
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions generator/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (
plugin "github.com/golang/protobuf/protoc-gen-go/plugin"
log "github.com/sirupsen/logrus" // nolint: depguard

"git.sqcorp.co/cash/gap/cmd/protoc-gen-grpc-gateway-ts/data"
"git.sqcorp.co/cash/gap/cmd/protoc-gen-grpc-gateway-ts/registry"
"git.sqcorp.co/cash/gap/errors"
"github.com/squareup/gap/cmd/protoc-gen-grpc-gateway-ts/data"
"github.com/squareup/gap/cmd/protoc-gen-grpc-gateway-ts/registry"
"github.com/squareup/gap/errors"
)

// TypeScriptGRPCGatewayGenerator is the protobuf generator for typescript
Expand Down
4 changes: 2 additions & 2 deletions generator/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (

"github.com/Masterminds/sprig"

"git.sqcorp.co/cash/gap/cmd/protoc-gen-grpc-gateway-ts/data"
"git.sqcorp.co/cash/gap/cmd/protoc-gen-grpc-gateway-ts/registry"
"github.com/squareup/gap/cmd/protoc-gen-grpc-gateway-ts/data"
"github.com/squareup/gap/cmd/protoc-gen-grpc-gateway-ts/registry"
)

const tmpl = `
Expand Down
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
plugin "github.com/golang/protobuf/protoc-gen-go/plugin"
log "github.com/sirupsen/logrus" // nolint: depguard

"git.sqcorp.co/cash/gap/cmd/protoc-gen-grpc-gateway-ts/generator"
"git.sqcorp.co/cash/gap/errors"
"github.com/squareup/gap/cmd/protoc-gen-grpc-gateway-ts/generator"
"github.com/squareup/gap/errors"
)

func decodeReq() *plugin.CodeGeneratorRequest {
Expand Down
2 changes: 1 addition & 1 deletion registry/enum.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package registry
import (
descriptorpb "github.com/golang/protobuf/protoc-gen-go/descriptor"

"git.sqcorp.co/cash/gap/cmd/protoc-gen-grpc-gateway-ts/data"
"github.com/squareup/gap/cmd/protoc-gen-grpc-gateway-ts/data"
)

func (r *Registry) analyseEnumType(fileData *data.File, packageName, fileName string, parents []string, enum *descriptorpb.EnumDescriptorProto) {
Expand Down
2 changes: 1 addition & 1 deletion registry/field.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package registry
import (
descriptorpb "github.com/golang/protobuf/protoc-gen-go/descriptor"

"git.sqcorp.co/cash/gap/cmd/protoc-gen-grpc-gateway-ts/data"
"github.com/squareup/gap/cmd/protoc-gen-grpc-gateway-ts/data"
)

// getFieldType generates an intermediate type and leave the rendering logic to choose what to render
Expand Down
2 changes: 1 addition & 1 deletion registry/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
descriptorpb "github.com/golang/protobuf/protoc-gen-go/descriptor"
log "github.com/sirupsen/logrus" // nolint: depguard

"git.sqcorp.co/cash/gap/cmd/protoc-gen-grpc-gateway-ts/data"
"github.com/squareup/gap/cmd/protoc-gen-grpc-gateway-ts/data"
)

func (r *Registry) analyseFile(f *descriptorpb.FileDescriptorProto) *data.File {
Expand Down
2 changes: 1 addition & 1 deletion registry/message.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package registry
import (
descriptorpb "github.com/golang/protobuf/protoc-gen-go/descriptor"

"git.sqcorp.co/cash/gap/cmd/protoc-gen-grpc-gateway-ts/data"
"github.com/squareup/gap/cmd/protoc-gen-grpc-gateway-ts/data"
)

func (r *Registry) analyseMessage(fileData *data.File, packageName, fileName string, parents []string, message *descriptorpb.DescriptorProto) {
Expand Down
4 changes: 2 additions & 2 deletions registry/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import (
"path/filepath"
"strings"

"git.sqcorp.co/cash/gap/cmd/protoc-gen-grpc-gateway-ts/data"
"git.sqcorp.co/cash/gap/errors"
descriptorpb "github.com/golang/protobuf/protoc-gen-go/descriptor"
plugin "github.com/golang/protobuf/protoc-gen-go/plugin"
log "github.com/sirupsen/logrus" // nolint: depguard
"github.com/squareup/gap/cmd/protoc-gen-grpc-gateway-ts/data"
"github.com/squareup/gap/errors"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion registry/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package registry
import (
descriptorpb "github.com/golang/protobuf/protoc-gen-go/descriptor"

"git.sqcorp.co/cash/gap/cmd/protoc-gen-grpc-gateway-ts/data"
"github.com/squareup/gap/cmd/protoc-gen-grpc-gateway-ts/data"
)

func (r *Registry) analyseService(fileData *data.File, packageName string, fileName string, service *descriptorpb.ServiceDescriptorProto) {
Expand Down
2 changes: 1 addition & 1 deletion test/oneof_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package test

import (
"git.sqcorp.co/cash/gap/errors"
"github.com/squareup/gap/errors"
"github.com/stretchr/testify/assert"
"os"
"os/exec"
Expand Down

0 comments on commit a096039

Please sign in to comment.