Skip to content

Commit 7fdbc41

Browse files
committed
Migrate to Go 1.17 for the go template
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
1 parent b78f694 commit 7fdbc41

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

template/go/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
FROM --platform=${TARGETPLATFORM:-linux/amd64} ghcr.io/openfaas/classic-watchdog:0.2.0 as watchdog
2-
FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.15-alpine3.13 as builder
2+
FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.17-alpine3.15 as builder
33

44
ARG TARGETPLATFORM
55
ARG BUILDPLATFORM

template/go/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module handler
22

3-
go 1.15
3+
go 1.16
44

55
replace handler/function => ./function

template/go/template.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,10 @@ build_options:
1717
- mysql-client
1818
- mysql-dev
1919
welcome_message: |
20-
You have created a new function which uses Go 1.15 and the Classic
20+
You have created a new function which uses Go 1.17 and the Classic
2121
OpenFaaS template.
2222
23-
To include third-party dependencies, use Go modules and use
24-
"--build-arg GO111MODULE=on" with faas-cli build or configure this
25-
via your stack.yml file.
23+
Go modules is enabled by default.
2624
2725
See more: https://docs.openfaas.com/cli/templates/
2826

0 commit comments

Comments
 (0)