From f8529d25d07932300db42426a94d4ca732910a6a Mon Sep 17 00:00:00 2001 From: "Alex Ellis (OpenFaaS Ltd)" Date: Thu, 11 Apr 2024 08:07:33 +0100 Subject: [PATCH] Migrate to Go 1.22 Signed-off-by: Alex Ellis (OpenFaaS Ltd) --- template/golang-http/Dockerfile | 2 +- template/golang-middleware/Dockerfile | 2 +- template/golang-middleware/template.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/template/golang-http/Dockerfile b/template/golang-http/Dockerfile index 94b650b..f106231 100644 --- a/template/golang-http/Dockerfile +++ b/template/golang-http/Dockerfile @@ -1,5 +1,5 @@ FROM --platform=${TARGETPLATFORM:-linux/amd64} ghcr.io/openfaas/of-watchdog:0.9.15 as watchdog -FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.21-alpine as build +FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.22-alpine as build ARG TARGETPLATFORM ARG BUILDPLATFORM diff --git a/template/golang-middleware/Dockerfile b/template/golang-middleware/Dockerfile index ce90017..b00504e 100644 --- a/template/golang-middleware/Dockerfile +++ b/template/golang-middleware/Dockerfile @@ -1,5 +1,5 @@ FROM --platform=${TARGETPLATFORM:-linux/amd64} ghcr.io/openfaas/of-watchdog:0.9.15 as watchdog -FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.21-alpine as build +FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.22-alpine as build ARG TARGETPLATFORM ARG BUILDPLATFORM diff --git a/template/golang-middleware/template.yml b/template/golang-middleware/template.yml index 6881cad..ed26bc9 100644 --- a/template/golang-middleware/template.yml +++ b/template/golang-middleware/template.yml @@ -1,7 +1,7 @@ language: golang-middleware fprocess: ./handler welcome_message: | - You have created a new function which uses Go 1.21 and Alpine + You have created a new function which uses Go 1.22 and Alpine Linux as its base image. To disable the go module, for private vendor code, please use