Skip to content

Commit

Permalink
Migrate to Go 1.17 for the go template
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 Mar 21, 2022
1 parent b78f694 commit 7fdbc41
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion template/go/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM --platform=${TARGETPLATFORM:-linux/amd64} ghcr.io/openfaas/classic-watchdog:0.2.0 as watchdog
FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.15-alpine3.13 as builder
FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.17-alpine3.15 as builder

ARG TARGETPLATFORM
ARG BUILDPLATFORM
Expand Down
2 changes: 1 addition & 1 deletion template/go/go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module handler

go 1.15
go 1.16

replace handler/function => ./function
6 changes: 2 additions & 4 deletions template/go/template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,10 @@ build_options:
- mysql-client
- mysql-dev
welcome_message: |
You have created a new function which uses Go 1.15 and the Classic
You have created a new function which uses Go 1.17 and the Classic
OpenFaaS template.
To include third-party dependencies, use Go modules and use
"--build-arg GO111MODULE=on" with faas-cli build or configure this
via your stack.yml file.
Go modules is enabled by default.
See more: https://docs.openfaas.com/cli/templates/
Expand Down

0 comments on commit 7fdbc41

Please sign in to comment.