Skip to content

Commit

Permalink
Merge pull request #52 from mfridman/master
Browse files Browse the repository at this point in the history
Upgrade to a /v2 module and bump deps
  • Loading branch information
mescanne authored Nov 26, 2024
2 parents 0e3ad19 + 15ae654 commit 65c3ebd
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 59 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ So you can reuse existing data definitions in .proto for BigQuery with this plug
## Installation

```sh
go install github.com/GoogleCloudPlatform/protoc-gen-bq-schema@latest
go install github.com/GoogleCloudPlatform/protoc-gen-bq-schema/v2@latest
```

## Usage
Expand Down
8 changes: 4 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module github.com/GoogleCloudPlatform/protoc-gen-bq-schema
module github.com/GoogleCloudPlatform/protoc-gen-bq-schema/v2

go 1.16
go 1.21

require (
github.com/golang/glog v1.2.1
google.golang.org/protobuf v1.33.0
github.com/golang/glog v1.2.3
google.golang.org/protobuf v1.35.2
)
12 changes: 4 additions & 8 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
github.com/golang/glog v1.2.1 h1:OptwRhECazUx5ix5TTWC3EZhsZEHWcYWY4FQHTIubm4=
github.com/golang/glog v1.2.1/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w=
github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk=
github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
github.com/golang/glog v1.2.3 h1:oDTdz9f5VGVVNGu/Q7UXKWYsD0873HXLHdJUNBsSEKM=
github.com/golang/glog v1.2.3/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w=
github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw=
google.golang.org/protobuf v1.33.0 h1:uNO2rsAINq/JlFpSdYEKIZ0uKD/R9cpdv0T+yoGwGmI=
google.golang.org/protobuf v1.33.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos=
google.golang.org/protobuf v1.35.2 h1:8Ar7bF+apOIoThw1EdZl0p1oWvMqTHmpA2fRTyZO8io=
google.golang.org/protobuf v1.35.2/go.mod h1:9fA7Ob0pmnwhb644+1+CVWFRbNajQ6iRojtC/QF5bRE=
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (
"fmt"
"os"

"github.com/GoogleCloudPlatform/protoc-gen-bq-schema/pkg/converter"
"github.com/GoogleCloudPlatform/protoc-gen-bq-schema/v2/pkg/converter"
"github.com/golang/glog"
"google.golang.org/protobuf/proto"
plugin "google.golang.org/protobuf/types/pluginpb"
Expand Down
2 changes: 1 addition & 1 deletion pkg/converter/convert.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"sort"
"strings"

"github.com/GoogleCloudPlatform/protoc-gen-bq-schema/protos"
"github.com/GoogleCloudPlatform/protoc-gen-bq-schema/v2/protos"
"github.com/golang/glog"
"google.golang.org/protobuf/encoding/prototext"
"google.golang.org/protobuf/proto"
Expand Down
28 changes: 6 additions & 22 deletions protos/bq_field.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 6 additions & 22 deletions protos/bq_table.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 65c3ebd

Please sign in to comment.