Skip to content

Commit 28d60ca

Browse files
authored
Merge pull request #97 from uselagoon/update-go-123
Chore: Updates Go to 1.23
2 parents 36ea33b + 66edbb7 commit 28d60ca

File tree

3 files changed

+61
-54
lines changed

3 files changed

+61
-54
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Build the manager binary
2-
FROM golang:1.22.3-alpine3.18 as builder
2+
FROM golang:1.23-alpine3.19 AS builder
33

44
COPY . /go/src/github.com/uselagoon/lagoon/services/insights-handler/
55
WORKDIR /go/src/github.com/uselagoon/lagoon/services/insights-handler/
@@ -15,7 +15,7 @@ COPY main.go main.go
1515
RUN CGO_ENABLED=0 GOOS=linux GOARCH=${ARCH} go build -a -o insights-handler main.go
1616

1717
# we pull the trivy binary from aquasec's alpine based image
18-
FROM aquasec/trivy:0.54.1 as trivy
18+
FROM aquasec/trivy:0.54.1 AS trivy
1919

2020
# Use distroless as minimal base image to package the insights-handler binary
2121
# Refer to https://github.com/GoogleContainerTools/distroless for more details
@@ -31,4 +31,4 @@ COPY --from=builder /go/src/github.com/uselagoon/lagoon/services/insights-handle
3131
COPY default_filter_transformers.yaml /default_filter_transformers.yaml
3232
USER 65532:65532
3333

34-
ENTRYPOINT ["/insights-handler"]
34+
ENTRYPOINT ["/insights-handler"]

go.mod

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,46 @@
11
module github.com/uselagoon/lagoon/services/insights-handler
22

3-
go 1.21
3+
go 1.23
44

55
require (
66
github.com/Khan/genqlient v0.7.0
7-
github.com/cheshir/go-mq v1.0.2
7+
github.com/cheshir/go-mq v1.2.0
88
github.com/dgrijalva/jwt-go v3.2.0+incompatible
99
github.com/joho/godotenv v1.5.1
1010
github.com/matryer/try v0.0.0-20161228173917-9ac251b645a2
11-
github.com/stretchr/testify v1.9.0
11+
github.com/stretchr/testify v1.10.0
1212
)
1313

1414
require (
1515
github.com/Microsoft/go-winio v0.6.1 // indirect
16-
github.com/NeowayLabs/wabbit v0.0.0-20200409220312-12e68ab5b0c6 // indirect
16+
github.com/NeowayLabs/wabbit v0.0.0-20210927194032-73ad61d1620e // indirect
1717
github.com/containerd/containerd v1.7.13 // indirect
1818
github.com/containerd/log v0.1.0 // indirect
1919
github.com/davecgh/go-spew v1.1.1 // indirect
2020
github.com/docker/go-units v0.5.0 // indirect
2121
github.com/dustin/go-humanize v1.0.1 // indirect
2222
github.com/go-ini/ini v1.67.0 // indirect
23-
github.com/goccy/go-json v0.10.3 // indirect
23+
github.com/goccy/go-json v0.10.4 // indirect
2424
github.com/google/uuid v1.6.0 // indirect
25-
github.com/klauspost/compress v1.17.9 // indirect
26-
github.com/klauspost/cpuid/v2 v2.2.8 // indirect
25+
github.com/klauspost/compress v1.17.11 // indirect
26+
github.com/klauspost/cpuid/v2 v2.2.9 // indirect
2727
github.com/kr/pretty v0.3.1 // indirect
2828
github.com/minio/md5-simd v1.1.2 // indirect
2929
github.com/moby/docker-image-spec v1.3.1 // indirect
3030
github.com/moby/patternmatcher v0.6.0 // indirect
3131
github.com/moby/sys/sequential v0.5.0 // indirect
3232
github.com/opencontainers/image-spec v1.1.0-rc2.0.20221005185240-3a7f492d3f1b // indirect
33-
github.com/pborman/uuid v1.2.0 // indirect
33+
github.com/pborman/uuid v1.2.1 // indirect
3434
github.com/pmezard/go-difflib v1.0.0 // indirect
35+
github.com/rabbitmq/amqp091-go v1.10.0 // indirect
3536
github.com/rogpeppe/go-internal v1.10.0 // indirect
36-
github.com/rs/xid v1.5.0 // indirect
37-
github.com/streadway/amqp v0.0.0-20200108173154-1c71cc93ed71 // indirect
37+
github.com/rs/xid v1.6.0 // indirect
38+
github.com/streadway/amqp v1.1.0 // indirect
3839
github.com/stretchr/objx v0.5.2 // indirect
39-
github.com/vektah/gqlparser/v2 v2.5.11 // indirect
40-
golang.org/x/crypto v0.24.0 // indirect
41-
golang.org/x/sys v0.21.0 // indirect
42-
golang.org/x/text v0.16.0 // indirect
40+
github.com/vektah/gqlparser/v2 v2.5.21 // indirect
41+
golang.org/x/crypto v0.31.0 // indirect
42+
golang.org/x/sys v0.28.0 // indirect
43+
golang.org/x/text v0.21.0 // indirect
4344
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
4445
)
4546

@@ -49,12 +50,12 @@ replace (
4950
)
5051

5152
require (
52-
github.com/CycloneDX/cyclonedx-go v0.9.0
53+
github.com/CycloneDX/cyclonedx-go v0.9.2
5354
github.com/cheekybits/is v0.0.0-20150225183255-68e9c0620927 // indirect
5455
github.com/fsouza/go-dockerclient v1.7.3 // indirect
55-
github.com/minio/minio-go/v7 v7.0.75
56+
github.com/minio/minio-go/v7 v7.0.82
5657
github.com/tiago4orion/conjure v0.0.0-20150908101743-93cb30b9d218 // indirect
57-
golang.org/x/net v0.26.0 // indirect
58+
golang.org/x/net v0.33.0 // indirect
5859
gopkg.in/yaml.v3 v3.0.1
5960
)
6061

0 commit comments

Comments
 (0)