Build: set 1.17 as minimum supported Go version#3461
Build: set 1.17 as minimum supported Go version#3461JoeKar merged 1 commit intomicro-editor:masterfrom alexandear:go-mod-version
Conversation
Currently I'm not aware of if the build is still possible with something lower than Can you please rebase the history of your PR to split the changes of |
I was able to build micro with a go version as old as go@1.17 (linux/amd64). If I go down to go@1.16 the build starts failing due to Of course "happens to work on this version" does not necessarily mean the same thing as minimum supported version. |
So it didn't match this minimum go version requirement either. PS: @dmaluka |
It so happens that I've been building micro with 1.17 on my primary machine all this time, so I can confirm that 1.17 actually works for us. So, do we have any actual reason to require 1.19 as the minimum version? If not, I'd suggest we stick to 1.17 for now. Why unnecessarily complicate lives of users who want to build micro with an older version of Go?
In fact even that turns out to be not exactly non-controversial. There has just been a report of an unfortunate regression we introduced in 2.0.14: #3463 |
|
Currently, only Go 1.22 and 1.23 is supported according to the release policy. So, even Go 1.19 is deprecated.
Done. |
That is Go release policy, not our release policy. Thanks for the note though, it seems a good idea to bump up Go from 1.19 to 1.22 or newer in our build infra. Which doesn't mean that we should prevent users from building micro on their own with an older Go version if they want to. |
Ok, I've no problem with that either. So we bump
...do so. |
And also update this sentence in README.md: "Make sure that you have Go version 1.16 or greater and Go modules are enabled." |
The PR sets Go version in the
go.modto 1.17 and rungo mod tidy.Also, adds Go 1.23 to CI.