Vercel - choose Go version

311 Views Asked by At

I'm trying to use Go 1.17 for my serverless functions on Vercel. When I'm deploying, I get this message :

Warning: Unknown Go version in /vercel/path1/go.mod

So I would like to know if there is a maximum supported version of Go for serverless functions.

1

There are 1 best solutions below

0
Daniel Bank On

Posting Andrey's comment as an official answer so that it is more obvious. He is correct that there is a maximum Go version that the Vercel Go Runtime supports. As of March 8th 2024, that version is Go 1.20.

See the Go Version section of the Using the Go Runtime with Serverless Functions documentation.