Skip to content

Commit

Permalink
Update Go version to 1.23
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
  • Loading branch information
alexellis committed Dec 9, 2024
1 parent 349c58e commit 4bd07e2
Show file tree
Hide file tree
Showing 39 changed files with 344 additions and 282 deletions.
4 changes: 2 additions & 2 deletions gateway/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM --platform=${BUILDPLATFORM:-linux/amd64} ghcr.io/openfaas/license-check:0.4.1 AS license-check

FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.22 AS build
FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.23 AS build

ENV GO111MODULE=on
ENV CGO_ENABLED=0
Expand Down Expand Up @@ -44,7 +44,7 @@ RUN CGO_ENABLED=${CGO_ENABLED} GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build --
-X github.com/openfaas/faas/gateway/types.Arch=${TARGETARCH}" \
-o gateway .

FROM --platform=${TARGETPLATFORM:-linux/amd64} alpine:3.20.1 AS ship
FROM --platform=${TARGETPLATFORM:-linux/amd64} alpine:3.21.0 AS ship

LABEL org.label-schema.license="OpenFaaS CE EULA - non-commercial" \
org.label-schema.vcs-url="https://github.com/openfaas/faas" \
Expand Down
20 changes: 10 additions & 10 deletions gateway/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/openfaas/faas/gateway

go 1.22
go 1.23

require (
github.com/docker/distribution v2.8.3+incompatible
Expand All @@ -10,7 +10,7 @@ require (
github.com/prometheus/client_golang v1.20.5
github.com/prometheus/client_model v0.6.1
go.uber.org/goleak v1.3.0
golang.org/x/sync v0.9.0
golang.org/x/sync v0.10.0
)

// replace github.com/openfaas/faas-provider => ../../faas-provider
Expand All @@ -21,20 +21,20 @@ require (
github.com/gogo/protobuf v1.3.2 // indirect
github.com/hashicorp/go-hclog v1.6.3 // indirect
github.com/hashicorp/go-msgpack/v2 v2.1.2 // indirect
github.com/hashicorp/raft v1.7.0 // indirect
github.com/hashicorp/raft v1.7.1 // indirect
github.com/klauspost/compress v1.17.11 // indirect
github.com/minio/highwayhash v1.0.3 // indirect
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
github.com/nats-io/jwt/v2 v2.5.8 // indirect
github.com/nats-io/jwt/v2 v2.7.2 // indirect
github.com/nats-io/nats.go v1.37.0 // indirect
github.com/nats-io/nkeys v0.4.7 // indirect
github.com/nats-io/nkeys v0.4.8 // indirect
github.com/nats-io/nuid v1.0.1 // indirect
github.com/nats-io/stan.go v0.10.4 // indirect
github.com/prometheus/common v0.60.1 // indirect
github.com/prometheus/common v0.61.0 // indirect
github.com/prometheus/procfs v0.15.1 // indirect
go.etcd.io/bbolt v1.3.10 // indirect
golang.org/x/crypto v0.29.0 // indirect
golang.org/x/sys v0.27.0 // indirect
golang.org/x/time v0.5.0 // indirect
go.etcd.io/bbolt v1.3.11 // indirect
golang.org/x/crypto v0.30.0 // indirect
golang.org/x/sys v0.28.0 // indirect
golang.org/x/time v0.8.0 // indirect
google.golang.org/protobuf v1.35.2 // indirect
)
131 changes: 14 additions & 117 deletions gateway/go.sum

Large diffs are not rendered by default.

16 changes: 5 additions & 11 deletions gateway/vendor/github.com/nats-io/nkeys/keypair.go

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

5 changes: 2 additions & 3 deletions gateway/vendor/github.com/nats-io/nkeys/public.go

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

8 changes: 5 additions & 3 deletions gateway/vendor/github.com/nats-io/nkeys/xkeys.go

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

4 changes: 2 additions & 2 deletions gateway/vendor/github.com/prometheus/common/expfmt/encode.go

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

4 changes: 2 additions & 2 deletions gateway/vendor/github.com/prometheus/common/expfmt/expfmt.go

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

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

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

7 changes: 4 additions & 3 deletions gateway/vendor/github.com/prometheus/common/model/alert.go

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

31 changes: 12 additions & 19 deletions gateway/vendor/github.com/prometheus/common/model/metric.go

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

17 changes: 9 additions & 8 deletions gateway/vendor/github.com/prometheus/common/model/silence.go

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

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

Loading

0 comments on commit 4bd07e2

Please sign in to comment.