From 680916d262acd370fa9500dbbf832b3d0c3400ec Mon Sep 17 00:00:00 2001 From: "Alex Ellis (OpenFaaS Ltd)" Date: Wed, 27 Nov 2024 09:37:34 +0000 Subject: [PATCH] Update base Go version Signed-off-by: Alex Ellis (OpenFaaS Ltd) --- README.md | 2 +- template/go/Dockerfile | 2 +- template/go/function/go.mod | 2 +- template/go/go.mod | 2 +- template/go/go.work | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 45433b1b..44826688 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ See: `faas-cli template store list` to see which templates are both: recommended | Name | Language | Version | Linux base | Watchdog | Link |:-----|:---------|:--------|:-----------|:---------|:---- | dockerfile | Dockerfile | N/A | Alpine Linux | classic | [Dockerfile template](https://github.com/openfaas/templates/tree/master/template/dockerfile) -| go | Go | 1.22 | Alpine Linux | classic | [Legacy Go template (deprecated)](https://github.com/openfaas/templates/tree/master/template/go) +| go | Go | 1.23 | Alpine Linux | classic | [Legacy Go template (deprecated)](https://github.com/openfaas/templates/tree/master/template/go) | node18 | NodeJS | 18 | Alpine Linux | of-watchdog | [NodeJS template (deprecated)](https://github.com/openfaas/templates/tree/master/template/node18) | node20 | NodeJS | 20 | Alpine Linux | of-watchdog | [NodeJS template](https://github.com/openfaas/templates/tree/master/template/node20) | bun-express | Bun | 1.0 | Alpine Linux | of-watchdog | [NodeJS template](https://github.com/openfaas/templates/tree/master/template/bun-express) diff --git a/template/go/Dockerfile b/template/go/Dockerfile index 56241e98..e31ffc75 100644 --- a/template/go/Dockerfile +++ b/template/go/Dockerfile @@ -1,5 +1,5 @@ FROM --platform=${TARGETPLATFORM:-linux/amd64} ghcr.io/openfaas/classic-watchdog:0.3.1 AS watchdog -FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.22-alpine3.20 AS build +FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.23-alpine3.20 AS build ARG TARGETPLATFORM ARG BUILDPLATFORM diff --git a/template/go/function/go.mod b/template/go/function/go.mod index 22137492..3e759ef8 100644 --- a/template/go/function/go.mod +++ b/template/go/function/go.mod @@ -1,3 +1,3 @@ module handler/function -go 1.19 +go 1.23 diff --git a/template/go/go.mod b/template/go/go.mod index 9400898e..5076a434 100644 --- a/template/go/go.mod +++ b/template/go/go.mod @@ -1,3 +1,3 @@ module handler -go 1.20 +go 1.23 diff --git a/template/go/go.work b/template/go/go.work index 245db28b..e609a15b 100644 --- a/template/go/go.work +++ b/template/go/go.work @@ -1,4 +1,4 @@ -go 1.19 +go 1.23 use ( .