diff --git a/internal/gencli/gencli.go b/internal/gencli/gencli.go index 62b7717b..09ed807b 100644 --- a/internal/gencli/gencli.go +++ b/internal/gencli/gencli.go @@ -191,7 +191,7 @@ func (g *gcli) genCommands() { }) putImport(cmd.Imports, &pbinfo.ImportSpec{ - Path: "github.com/golang/protobuf/jsonpb", + Path: "google.golang.org/protobuf/jsonpb", }) if !cmd.ClientStreaming { diff --git a/internal/gencli/root_file.go b/internal/gencli/root_file.go index 7b2eeff8..cc1ae571 100644 --- a/internal/gencli/root_file.go +++ b/internal/gencli/root_file.go @@ -31,9 +31,9 @@ import ( "fmt" "os" - "github.com/golang/protobuf/jsonpb" - "github.com/golang/protobuf/proto" "github.com/spf13/cobra" + "google.golang.org/protobuf/jsonpb" + "google.golang.org/protobuf/proto" ) var Verbose, OutputJSON bool diff --git a/internal/gencli/service_file_test.go b/internal/gencli/service_file_test.go index a6bbe062..af0bb272 100644 --- a/internal/gencli/service_file_test.go +++ b/internal/gencli/service_file_test.go @@ -20,7 +20,6 @@ import ( "testing" "github.com/googleapis/gapic-generator-go/internal/pbinfo" - "github.com/googleapis/gapic-generator-go/internal/txtdiff" ) @@ -37,7 +36,7 @@ func TestServiceFile(t *testing.T) { root: "Root", format: true, imports: map[string]*pbinfo.ImportSpec{ - "test": &pbinfo.ImportSpec{Name: "proto", Path: "github.com/golang/protobuf/proto"}, + "test": &pbinfo.ImportSpec{Name: "proto", Path: "google.golang.org/protobuf/proto"}, }, subcommands: map[string][]*Command{ name: []*Command{ diff --git a/internal/gencli/testdata/root_file.want b/internal/gencli/testdata/root_file.want index cd698e24..1f8b45d1 100644 --- a/internal/gencli/testdata/root_file.want +++ b/internal/gencli/testdata/root_file.want @@ -8,9 +8,9 @@ import ( "fmt" "os" - "github.com/golang/protobuf/jsonpb" - "github.com/golang/protobuf/proto" "github.com/spf13/cobra" + "google.golang.org/protobuf/jsonpb" + "google.golang.org/protobuf/proto" ) var Verbose, OutputJSON bool diff --git a/internal/gencli/testdata/service_file.want b/internal/gencli/testdata/service_file.want index 2e535252..15d15d67 100644 --- a/internal/gencli/testdata/service_file.want +++ b/internal/gencli/testdata/service_file.want @@ -12,7 +12,7 @@ import ( "google.golang.org/grpc" "google.golang.org/grpc/credentials/insecure" - proto "github.com/golang/protobuf/proto" + proto "google.golang.org/protobuf/proto" ) var TodoConfig *viper.Viper