Skip to content

Commit cec3b8c

Browse files
authored
Update go deps, use postgres-16, change unmaintained actions plugin (#127)
1 parent ca86640 commit cec3b8c

File tree

7 files changed

+190
-129
lines changed

7 files changed

+190
-129
lines changed

.github/workflows/docker.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,11 @@ jobs:
2525
uses: actions/setup-go@v4
2626
with:
2727
go-version: "1.21"
28+
cache: false
2829
id: go
2930

3031
- name: Check out code into the Go module directory
31-
uses: actions/checkout@v3
32+
uses: actions/checkout@v4
3233

3334
- name: Lint
3435
uses: golangci/golangci-lint-action@v3
@@ -38,11 +39,13 @@ jobs:
3839
- name: break if proto modifications where not committed
3940
run: |
4041
make proto
42+
4143
- name: Check if there are changes
42-
uses: UnicornGlobal/[email protected]
44+
uses: tj-actions/verify-changed-files@v16
45+
id: verify-changed-files
4346

4447
- name: Process changes
45-
if: steps.changes.outputs.changed == 1
48+
if: steps.verify-changed-files.outputs.files_changed == 'true'
4649
run: echo "Changes exist"
4750

4851
- name: build and test
@@ -59,10 +62,10 @@ jobs:
5962
steps:
6063

6164
- name: Check out code into the Go module directory
62-
uses: actions/checkout@v3
65+
uses: actions/checkout@v4
6366

6467
- name: Log in to the Container registry
65-
uses: docker/login-action@v2
68+
uses: docker/login-action@v3
6669
with:
6770
registry: ${{ env.REGISTRY }}
6871
username: ${{ github.actor }}
@@ -75,7 +78,7 @@ jobs:
7578
[ "${GITHUB_EVENT_NAME}" == 'push' ] && echo "tag=latest" >> $GITHUB_ENV || true
7679
7780
- name: Build and push image
78-
uses: docker/build-push-action@v3
81+
uses: docker/build-push-action@v5
7982
with:
8083
context: .
8184
push: true
@@ -90,10 +93,11 @@ jobs:
9093
uses: actions/setup-go@v4
9194
with:
9295
go-version: "1.21"
96+
cache: false
9397
id: go
9498

9599
- name: Check out code into the Go module directory
96-
uses: actions/checkout@v3
100+
uses: actions/checkout@v4
97101

98102
- name: run benchmark
99103
run: |

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,12 +149,12 @@ docker run -it --rm --entrypoint /cli ghcr.io/metal-stack/go-ipam
149149
The benchmarks above were performed using:
150150

151151
* cpu: Intel(R) Xeon(R) Platinum 8370C CPU @ 2.80GHz
152-
* postgres:15-alpine
152+
* postgres:16-alpine
153153
* cockroach:v23.1.0
154154
* redis:7.2-alpine
155155
* keydb:alpine_x86_64_v6.3.1
156156
* etcd:v3.5.9
157-
* mongodb:7.0.0-jammy
157+
* mongodb:7
158158

159159
### Database Version Compatability
160160

go.mod

Lines changed: 45 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -3,56 +3,60 @@ module github.com/metal-stack/go-ipam
33
go 1.21
44

55
require (
6-
connectrpc.com/connect v1.11.0
7-
connectrpc.com/grpchealth v1.2.0
6+
connectrpc.com/connect v1.11.1
7+
connectrpc.com/grpchealth v1.3.0
88
connectrpc.com/grpcreflect v1.2.0
9-
connectrpc.com/otelconnect v0.5.0
9+
connectrpc.com/otelconnect v0.6.0
1010
github.com/avast/retry-go/v4 v4.5.0
1111
github.com/jmoiron/sqlx v1.3.5
1212
github.com/klauspost/connect-compress/v2 v2.0.0
1313
github.com/lib/pq v1.10.9
1414
github.com/metal-stack/v v1.0.3
15-
github.com/prometheus/client_golang v1.16.0
16-
github.com/redis/go-redis/v9 v9.1.0
15+
github.com/prometheus/client_golang v1.17.0
16+
github.com/redis/go-redis/v9 v9.2.1
1717
github.com/stretchr/testify v1.8.4
18-
github.com/testcontainers/testcontainers-go v0.23.0
18+
github.com/testcontainers/testcontainers-go v0.25.0
1919
github.com/urfave/cli/v2 v2.25.7
2020
go.etcd.io/etcd/client/v3 v3.5.9
2121
go.mongodb.org/mongo-driver v1.12.1
22-
go.opentelemetry.io/otel/exporters/prometheus v0.39.0
23-
go.opentelemetry.io/otel/sdk/metric v0.39.0
24-
go4.org/netipx v0.0.0-20230728184502-ec4c8b891b28
25-
golang.org/x/net v0.14.0
26-
golang.org/x/sync v0.3.0
22+
go.opentelemetry.io/otel/exporters/prometheus v0.42.0
23+
go.opentelemetry.io/otel/sdk/metric v1.19.0
24+
go4.org/netipx v0.0.0-20230824141953-6213f710f925
25+
golang.org/x/net v0.17.0
26+
golang.org/x/sync v0.4.0
2727
google.golang.org/protobuf v1.31.0
2828
)
2929

3030
require (
3131
dario.cat/mergo v1.0.0 // indirect
3232
github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161 // indirect
3333
github.com/Microsoft/go-winio v0.6.1 // indirect
34-
github.com/benbjohnson/clock v1.3.5 // indirect
34+
github.com/Microsoft/hcsshim v0.11.1 // indirect
3535
github.com/beorn7/perks v1.0.1 // indirect
3636
github.com/cenkalti/backoff/v4 v4.2.1 // indirect
3737
github.com/cespare/xxhash/v2 v2.2.0 // indirect
38-
github.com/containerd/containerd v1.7.3 // indirect
38+
github.com/containerd/containerd v1.7.7 // indirect
39+
github.com/containerd/log v0.1.0 // indirect
3940
github.com/coreos/go-semver v0.3.1 // indirect
4041
github.com/coreos/go-systemd/v22 v22.5.0 // indirect
4142
github.com/cpuguy83/dockercfg v0.3.1 // indirect
42-
github.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect
43+
github.com/cpuguy83/go-md2man/v2 v2.0.3 // indirect
4344
github.com/davecgh/go-spew v1.1.1 // indirect
4445
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect
45-
github.com/docker/distribution v2.8.2+incompatible // indirect
46-
github.com/docker/docker v24.0.5+incompatible // indirect
46+
github.com/distribution/reference v0.5.0 // indirect
47+
github.com/docker/distribution v2.8.3+incompatible // indirect
48+
github.com/docker/docker v24.0.6+incompatible // indirect
4749
github.com/docker/go-connections v0.4.0 // indirect
4850
github.com/docker/go-units v0.5.0 // indirect
4951
github.com/go-logr/logr v1.2.4 // indirect
5052
github.com/go-logr/stdr v1.2.2 // indirect
53+
github.com/go-ole/go-ole v1.3.0 // indirect
5154
github.com/gogo/protobuf v1.3.2 // indirect
5255
github.com/golang/protobuf v1.5.3 // indirect
5356
github.com/golang/snappy v0.0.4 // indirect
5457
github.com/google/uuid v1.3.1 // indirect
55-
github.com/klauspost/compress v1.16.7 // indirect
58+
github.com/klauspost/compress v1.17.0 // indirect
59+
github.com/lufia/plan9stats v0.0.0-20230326075908-cb1d2100619a // indirect
5660
github.com/magiconair/properties v1.8.7 // indirect
5761
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
5862
github.com/moby/patternmatcher v0.6.0 // indirect
@@ -61,38 +65,44 @@ require (
6165
github.com/montanaflynn/stats v0.7.1 // indirect
6266
github.com/morikuni/aec v1.0.0 // indirect
6367
github.com/opencontainers/go-digest v1.0.0 // indirect
64-
github.com/opencontainers/image-spec v1.1.0-rc4 // indirect
68+
github.com/opencontainers/image-spec v1.1.0-rc5 // indirect
6569
github.com/opencontainers/runc v1.1.9 // indirect
6670
github.com/pkg/errors v0.9.1 // indirect
6771
github.com/pmezard/go-difflib v1.0.0 // indirect
68-
github.com/prometheus/client_model v0.4.0 // indirect
72+
github.com/power-devops/perfstat v0.0.0-20221212215047-62379fc7944b // indirect
73+
github.com/prometheus/client_model v0.5.0 // indirect
6974
github.com/prometheus/common v0.44.0 // indirect
70-
github.com/prometheus/procfs v0.11.1 // indirect
75+
github.com/prometheus/procfs v0.12.0 // indirect
7176
github.com/russross/blackfriday/v2 v2.1.0 // indirect
77+
github.com/shirou/gopsutil/v3 v3.23.9 // indirect
78+
github.com/shoenig/go-m1cpu v0.1.6 // indirect
7279
github.com/sirupsen/logrus v1.9.3 // indirect
80+
github.com/tklauser/go-sysconf v0.3.12 // indirect
81+
github.com/tklauser/numcpus v0.6.1 // indirect
7382
github.com/xdg-go/pbkdf2 v1.0.0 // indirect
7483
github.com/xdg-go/scram v1.1.2 // indirect
7584
github.com/xdg-go/stringprep v1.0.4 // indirect
7685
github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect
7786
github.com/youmark/pkcs8 v0.0.0-20201027041543-1326539a0a0a // indirect
87+
github.com/yusufpapurcu/wmi v1.2.3 // indirect
7888
go.etcd.io/etcd/api/v3 v3.5.9 // indirect
7989
go.etcd.io/etcd/client/pkg/v3 v3.5.9 // indirect
80-
go.opentelemetry.io/otel v1.16.0 // indirect
81-
go.opentelemetry.io/otel/metric v1.16.0 // indirect
82-
go.opentelemetry.io/otel/sdk v1.16.0 // indirect
83-
go.opentelemetry.io/otel/trace v1.16.0 // indirect
90+
go.opentelemetry.io/otel v1.19.0 // indirect
91+
go.opentelemetry.io/otel/metric v1.19.0 // indirect
92+
go.opentelemetry.io/otel/sdk v1.19.0 // indirect
93+
go.opentelemetry.io/otel/trace v1.19.0 // indirect
8494
go.uber.org/goleak v1.2.1 // indirect
8595
go.uber.org/multierr v1.11.0 // indirect
86-
go.uber.org/zap v1.25.0 // indirect
87-
golang.org/x/crypto v0.12.0 // indirect
88-
golang.org/x/exp v0.0.0-20230817173708-d852ddb80c63 // indirect
89-
golang.org/x/mod v0.12.0 // indirect
90-
golang.org/x/sys v0.11.0 // indirect
91-
golang.org/x/text v0.12.0 // indirect
92-
golang.org/x/tools v0.12.1-0.20230815132531-74c255bcf846 // indirect
93-
google.golang.org/genproto v0.0.0-20230822172742-b8732ec3820d // indirect
94-
google.golang.org/genproto/googleapis/api v0.0.0-20230822172742-b8732ec3820d // indirect
95-
google.golang.org/genproto/googleapis/rpc v0.0.0-20230822172742-b8732ec3820d // indirect
96-
google.golang.org/grpc v1.57.0 // indirect
96+
go.uber.org/zap v1.26.0 // indirect
97+
golang.org/x/crypto v0.14.0 // indirect
98+
golang.org/x/exp v0.0.0-20231006140011-7918f672742d // indirect
99+
golang.org/x/mod v0.13.0 // indirect
100+
golang.org/x/sys v0.13.0 // indirect
101+
golang.org/x/text v0.13.0 // indirect
102+
golang.org/x/tools v0.14.0 // indirect
103+
google.golang.org/genproto v0.0.0-20231009173412-8bfb1ae86b6c // indirect
104+
google.golang.org/genproto/googleapis/api v0.0.0-20231009173412-8bfb1ae86b6c // indirect
105+
google.golang.org/genproto/googleapis/rpc v0.0.0-20231009173412-8bfb1ae86b6c // indirect
106+
google.golang.org/grpc v1.58.3 // indirect
97107
gopkg.in/yaml.v3 v3.0.1 // indirect
98108
)

0 commit comments

Comments
 (0)