Skip to content

Commit c13400c

Browse files
Update deps
* Update deps
1 parent ff2ebec commit c13400c

File tree

12 files changed

+239
-1353
lines changed

12 files changed

+239
-1353
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
BUF_VERSION:=1.17.0
2-
SQLC_VERSION:=1.18.0
1+
BUF_VERSION:=1.35.1
2+
SQLC_VERSION:=1.26.0
33

44
generate:
55
docker run -v $$(pwd):/srv -w /srv bufbuild/buf:$(BUF_VERSION) generate
6-
docker run -v $$(pwd)/users:/srv -w /srv kjconroy/sqlc:$(SQLC_VERSION) generate
6+
docker run -v $$(pwd)/users:/srv -w /srv sqlc/sqlc:$(SQLC_VERSION) generate

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ The scheme is used when performing the database migrations, as the behaviour cha
5454

5555
### Requirements
5656

57-
* `go` > 1.16
57+
* `go` > 1.21
5858

5959
### Making changes
6060

buf.gen.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
version: v1
22
plugins:
3-
- plugin: buf.build/protocolbuffers/go:v1.30.0
3+
- plugin: buf.build/protocolbuffers/go:v1.34.2
44
out: .
55
opt:
66
- paths=source_relative
7-
- plugin: buf.build/grpc/go:v1.3.0
7+
- plugin: buf.build/grpc/go:v1.5.1
88
out: .
99
opt:
1010
- paths=source_relative

go.mod

Lines changed: 55 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,62 @@
11
module github.com/johanbrandhorst/grpc-postgres
22

3-
go 1.16
3+
go 1.21
4+
5+
toolchain go1.22.0
46

57
require (
6-
github.com/Masterminds/squirrel v1.5.1
7-
github.com/fullstorydev/grpcui v1.2.0
8-
github.com/golang-migrate/migrate/v4 v4.15.1
9-
github.com/google/go-cmp v0.5.6
10-
github.com/hashicorp/errwrap v1.1.0 // indirect
11-
github.com/hashicorp/go-multierror v1.1.1 // indirect
12-
github.com/jackc/pgconn v1.10.1 // indirect
13-
github.com/jackc/pgproto3/v2 v2.2.0 // indirect
14-
github.com/jackc/pgtype v1.9.0
15-
github.com/jackc/pgx/v4 v4.13.0
16-
github.com/lib/pq v1.10.4 // indirect
8+
github.com/Masterminds/squirrel v1.5.4
9+
github.com/fullstorydev/grpcui v1.5.0
10+
github.com/golang-migrate/migrate/v4 v4.17.1
11+
github.com/google/go-cmp v0.6.0
12+
github.com/jackc/pgtype v1.14.3
13+
github.com/jackc/pgx/v4 v4.18.3
1714
github.com/ory/dockertest/v3 v3.6.0
18-
github.com/sirupsen/logrus v1.8.1
15+
github.com/sirupsen/logrus v1.9.3
1916
github.com/soheilhy/cmux v0.1.5
20-
go.uber.org/atomic v1.9.0 // indirect
21-
golang.org/x/crypto v0.0.0-20211117183948-ae814b36b871 // indirect
22-
golang.org/x/net v0.0.0-20211118161319-6a13c67c3ce4 // indirect
23-
golang.org/x/sys v0.0.0-20211117180635-dee7805ff2e1 // indirect
24-
google.golang.org/genproto v0.0.0-20211118181313-81c1377c94b1 // indirect
25-
google.golang.org/grpc v1.42.0
26-
google.golang.org/protobuf v1.27.1
17+
google.golang.org/grpc v1.65.0
18+
google.golang.org/protobuf v1.34.2
19+
)
20+
21+
require (
22+
github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161 // indirect
23+
github.com/Microsoft/go-winio v0.6.1 // indirect
24+
github.com/Nvveen/Gotty v0.0.0-20120604004816-cd527374f1e5 // indirect
25+
github.com/bufbuild/protocompile v0.14.0 // indirect
26+
github.com/cenkalti/backoff/v3 v3.0.0 // indirect
27+
github.com/cncf/xds/go v0.0.0-20240723142845-024c85f92f20 // indirect
28+
github.com/cockroachdb/cockroach-go/v2 v2.3.8 // indirect
29+
github.com/containerd/continuity v0.1.0 // indirect
30+
github.com/docker/go-connections v0.4.0 // indirect
31+
github.com/docker/go-units v0.5.0 // indirect
32+
github.com/envoyproxy/go-control-plane v0.12.0 // indirect
33+
github.com/envoyproxy/protoc-gen-validate v1.0.4 // indirect
34+
github.com/fullstorydev/grpcurl v1.9.1 // indirect
35+
github.com/golang/protobuf v1.5.4 // indirect
36+
github.com/hashicorp/errwrap v1.1.0 // indirect
37+
github.com/hashicorp/go-multierror v1.1.1 // indirect
38+
github.com/jackc/chunkreader/v2 v2.0.1 // indirect
39+
github.com/jackc/pgconn v1.14.3 // indirect
40+
github.com/jackc/pgio v1.0.0 // indirect
41+
github.com/jackc/pgpassfile v1.0.0 // indirect
42+
github.com/jackc/pgproto3/v2 v2.3.3 // indirect
43+
github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761 // indirect
44+
github.com/jhump/protoreflect v1.16.0 // indirect
45+
github.com/lann/builder v0.0.0-20180802200727-47ae307949d0 // indirect
46+
github.com/lann/ps v0.0.0-20150810152359-62de8c46ede0 // indirect
47+
github.com/lib/pq v1.10.9 // indirect
48+
github.com/opencontainers/go-digest v1.0.0 // indirect
49+
github.com/opencontainers/image-spec v1.0.2 // indirect
50+
github.com/opencontainers/runc v1.0.2 // indirect
51+
github.com/pkg/errors v0.9.1 // indirect
52+
go.uber.org/atomic v1.11.0 // indirect
53+
golang.org/x/crypto v0.25.0 // indirect
54+
golang.org/x/mod v0.18.0 // indirect
55+
golang.org/x/net v0.27.0 // indirect
56+
golang.org/x/sync v0.7.0 // indirect
57+
golang.org/x/sys v0.22.0 // indirect
58+
golang.org/x/text v0.16.0 // indirect
59+
golang.org/x/tools v0.22.0 // indirect
60+
google.golang.org/genproto/googleapis/rpc v0.0.0-20240730163845-b1a4ccb954bf // indirect
61+
gotest.tools/v3 v3.5.1 // indirect
2762
)

go.sum

Lines changed: 119 additions & 1214 deletions
Large diffs are not rendered by default.

main.go

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import (
1313
"github.com/sirupsen/logrus"
1414
"github.com/soheilhy/cmux"
1515
"google.golang.org/grpc"
16+
"google.golang.org/grpc/credentials/insecure"
1617
"google.golang.org/grpc/reflection"
1718

1819
userspb "github.com/johanbrandhorst/grpc-postgres/proto"
@@ -77,12 +78,7 @@ func main() {
7778
defer cancel()
7879

7980
sAddr := fmt.Sprintf("dns:///0.0.0.0:%s", port)
80-
cc, err := grpc.DialContext(
81-
ctx,
82-
sAddr,
83-
grpc.WithBlock(),
84-
grpc.WithInsecure(),
85-
)
81+
cc, err := grpc.NewClient(sAddr, grpc.WithTransportCredentials(insecure.NewCredentials()))
8682
if err != nil {
8783
log.WithError(err).Fatal("Failed to dial local server")
8884
}

proto/users.pb.go

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)