You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: Troubleshoot issues with Scaleway Serverless Functions Go build not working due to version error.
5
+
content:
6
+
h1: Go function build fails due to go version
7
+
paragraph: Troubleshoot issues with Scaleway Serverless Functions Go build not working due to version error.
8
+
tags: serverless functions troubleshooting issue error go version build
9
+
dates:
10
+
validation: 2025-04-30
11
+
posted: 2025-04-30
12
+
categories:
13
+
- serverless
14
+
---
15
+
16
+
## Problem
17
+
18
+
My Go Serverless Function build failed with an error message about the wrong version.
19
+
20
+
## Cause
21
+
22
+
When deploying a Go function, build step can fail with an error about the version of code versus version of the runtime even if the version seems correct.
23
+
24
+
This is due to the `go.mod` directive that specify a `X.Y.Z` version where the `Z` version does not match.
25
+
26
+
This happens by default because in go toolchain, the `go mod init` command now adds the version.
0 commit comments