Skip to content

Commit 4be14d3

Browse files
committed
Update to Go 1.23 for Dockerfile and go.mod/go.work
I was unable to use a newer Go module, it insisted on having Go 1.23 in go.work/go.mod with golang-middleware Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
1 parent 94aa5c5 commit 4be14d3

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

template/golang-http/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
FROM --platform=${TARGETPLATFORM:-linux/amd64} ghcr.io/openfaas/of-watchdog:0.10.6 AS watchdog
2-
FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.22-alpine AS build
2+
FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.23-alpine AS build
33

44
ARG TARGETPLATFORM
55
ARG BUILDPLATFORM

template/golang-http/go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module handler
22

3-
go 1.22
3+
go 1.23
44

55
require github.com/openfaas/templates-sdk/go-http v0.0.0-20220408082716-5981c545cb03

template/golang-middleware/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
FROM --platform=${TARGETPLATFORM:-linux/amd64} ghcr.io/openfaas/of-watchdog:0.10.6 AS watchdog
2-
FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.22-alpine AS build
2+
FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.23-alpine AS build
33

44
ARG TARGETPLATFORM
55
ARG BUILDPLATFORM

template/golang-middleware/go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module handler
22

3-
go 1.22
3+
go 1.23

template/golang-middleware/go.work

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
go 1.22
1+
go 1.23
22

33
use (
44
.

template/golang-middleware/template.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
language: golang-middleware
22
fprocess: ./handler
33
welcome_message: |
4-
You have created a new function which uses Go 1.22 and Alpine
4+
You have created a new function which uses go 1.23 and Alpine
55
Linux as its base image.
66
77
To disable the go module, for private vendor code, please use

0 commit comments

Comments
 (0)