Is it possible to use Go1.21, for Cloudflare deployment? #811
-
I use Cloudflare to build my site for long time. After upgrading to v2,I found that it requires Go1.22 but Cloudflare's build image only support Go1.21. I know it's weird to adjust Go version for a specific content provider like Cloudflare, so I fork a new branch for integration. But I try to start this discussion since the Go version seems not the significant part in a template. Can it use Go1.21 at now? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You are right that the Go version is not influential on the workings of the theme. I will downgrade the version in But: You are reading that link wrong. You can set |
Beta Was this translation helpful? Give feedback.
You are right that the Go version is not influential on the workings of the theme. I will downgrade the version in
go.mod
in the next version as this topic came up more than once.But: You are reading that link wrong. You can set
GO_VERSION
to1.22.0
for your Cloudflare installation and all is well. I think that might help with newer features of GoHugo. While you are at it also define a newerHUGO_VERSION
at the same space. Here is how to override the values of env variables.